  /* Animación de entrada del modal */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        /* Modal Flotante */
        .ad-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(31, 41, 55, 0.6);
            backdrop-filter: blur(4px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            animation: fadeIn 0.3s ease-out;
        }

        .ad-modal-overlay.show {
            display: flex;
        }

        .ad-modal-container {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            max-width: 1100px;
            width: 90%;
            animation: slideInUp 0.5s ease-out;
            position: relative;
            max-height: none;
        }

        .ad-carousel-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 20px;
        }

        .ad-carousel-item {
            display: none;
            width: 100%;
            height: 600px;
            background: var(--light-bg);
            position: relative;
            animation: fadeIn 0.5s ease-out;
        }

        .ad-carousel-item.active {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .ad-carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .ad-carousel-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Botones del carrusel */
        .ad-carousel-controls {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .ad-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .ad-dot.active {
            background: white;
            width: 32px;
            border-radius: 6px;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .ad-btn-prev, .ad-btn-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
            color: var(--primary-color);
            font-size: 20px;
            font-weight: bold;
        }

        .ad-btn-prev:hover, .ad-btn-next:hover {
            background: white;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
            transform: translateY(-50%) scale(1.1);
        }

        .ad-btn-prev {
            left: 15px;
        }

        .ad-btn-next {
            right: 15px;
        }

        /* Contenido del modal */
        .ad-modal-content {
            padding: 15px 20px;
            text-align: center;
        }

        .ad-modal-title {
            font-family: 'Playfair Display', serif;
            font-size: 22px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 8px;
            display: none;
        }

        .ad-modal-description {
            font-size: 13px;
            color: var(--text-light);
            margin-bottom: 15px;
            line-height: 1.5;
            display: none;
        }

        .ad-modal-buttons {
            display: flex;
            gap: 0;
            justify-content: center;
        }

        .ad-btn-visit {
            flex: 1;
            padding: 15px 24px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
            text-decoration: none;
            display: block;
            width: 100%;
        }

        .ad-btn-visit:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 188, 212, 0.4);
            color: white;
        }

        .ad-btn-close {
            flex: 1;
            padding: 12px 24px;
            background: var(--light-bg);
            color: var(--text-dark);
            border: 2px solid var(--border-color);
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .ad-btn-close:hover {
            background: var(--border-color);
            border-color: var(--text-dark);
        }

        /* Botón cerrar (X) */
        .ad-close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 20;
            color: var(--text-dark);
            font-size: 24px;
            transition: all 0.3s ease;
        }

        .ad-close-btn:hover {
            background: white;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

 

        .hero {
            padding: 80px 20px;
            text-align: center;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-content h1 {
            font-family: 'Playfair Display', serif;
            font-size: 56px;
            font-weight: 700;
            margin-bottom: 20px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-content p {
            font-size: 18px;
            color: var(--text-light);
            margin-bottom: 30px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.8;
        }

        .cta-button {
            display: inline-block;
            padding: 15px 40px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            text-decoration: none;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-top: 20px;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
            color: white;
        }

        .features {
            padding: 80px 20px;
            background: white;
        }

        .feature-card {
            background: var(--light-bg);
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .feature-card:hover {
            border-color: var(--primary-color);
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(99, 102, 241, 0.1);
        }

        .feature-icon {
            font-size: 48px;
            margin-bottom: 15px;
        }

        .feature-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-dark);
        }

        .feature-card p {
            color: var(--text-light);
            font-size: 14px;
            line-height: 1.6;
        }

        /* Responsivo */
        @media (max-width: 768px) {
            .hero-content h1 {
                font-size: 36px;
            }

            .hero {
                padding: 50px 20px;
                min-height: 70vh;
            }

            .ad-modal-container {
                width: 95%;
                max-width: 500px;
            }

            .ad-carousel-item {
                aspect-ratio: 4/5;
            }

            .ad-btn-prev, .ad-btn-next {
                width: 36px;
                height: 36px;
                font-size: 16px;
            }

            .ad-btn-prev {
                left: 10px;
            }

            .ad-btn-next {
                right: 10px;
            }
        }

     

        /* Nuevas funcionalidades */
        .ad-carousel-wrapper {
            perspective: 1000px;
        }

        .ad-carousel-item {
            transform-origin: center;
            transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .ad-carousel-item.active {
            transform: scale(1) rotateY(0deg) translateZ(0);
            z-index: 2;
        }

        .ad-carousel-item.prev {
            transform: scale(0.85) rotateY(45deg) translateZ(-100px) translateX(-20px);
            opacity: 0.5;
            z-index: 1;
        }

        .ad-carousel-item.next {
            transform: scale(0.85) rotateY(-45deg) translateZ(-100px) translateX(20px);
            opacity: 0.5;
            z-index: 1;
        }

        /* Barra de progreso */
        .ad-progress-bar {
            height: 4px;
            background: #e5e7eb;
            position: relative;
            overflow: hidden;
        }

        .ad-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            width: 0%;
            transition: width linear;
        }

        /* Contador de slides */
        .ad-slide-counter {
            position: absolute;
            top: 15px;
            left: 15px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            backdrop-filter: blur(10px);
            z-index: 15;
        }

        /* Indicador de reproducción */
        .ad-playing-indicator {
            position: absolute;
            top: 15px;
            right: 15px;
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            backdrop-filter: blur(10px);
            z-index: 15;
        }

        .play-dot {
            width: 6px;
            height: 6px;
            background: #00bcd4;
            border-radius: 50%;
            animation: pulse 1.5s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.5;
                transform: scale(1.2);
            }
        }

        /* Botón pause/play */
        .ad-play-pause-btn {
            position: absolute;
            bottom: 20px;
            right: 80px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            color: var(--primary-color);
            font-size: 18px;
            transition: all 0.3s ease;
            font-weight: bold;
        }

        .ad-play-pause-btn:hover {
            background: white;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
            transform: scale(1.1);
        }

        /* Botón like */
        .ad-like-btn {
            position: absolute;
            bottom: 20px;
            left: 20px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            color: #999;
            font-size: 20px;
            transition: all 0.3s ease;
        }

        .ad-like-btn:hover {
            background: white;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
            transform: scale(1.1);
        }

        .ad-like-btn.liked {
            color: #ff6b6b;
            animation: heartBeat 0.6s ease-in-out;
        }

        @keyframes heartBeat {
            0% {
                transform: scale(1);
            }
            25% {
                transform: scale(1.3);
            }
            50% {
                transform: scale(1.1);
            }
            75% {
                transform: scale(1.3);
            }
            100% {
                transform: scale(1);
            }
        }

        /* Timer de cierre automático */
        .ad-timer-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #ff6b6b, #ffa502);
            animation: shrinkWidth linear forwards;
            z-index: 12;
        }

        @keyframes shrinkWidth {
            from {
                width: 100%;
            }
            to {
                width: 0%;
            }
        }

        /* Tooltip */
        .ad-tooltip {
            position: absolute;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 12px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            z-index: 20;
        }

        .ad-btn-prev:hover .ad-tooltip,
        .ad-btn-next:hover .ad-tooltip {
            opacity: 1;
        }

        /* Información del slide */
        .ad-slide-info {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            backdrop-filter: blur(10px);
            z-index: 10;
        }

        .ad-modal-content {
            animation: slideUp 0.5s ease-out 0.3s both;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Tags de categoría */
        .ad-tag {
            display: none;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Modal mejorado */
        .ad-modal-container {
            max-height: 90vh;
            overflow-y: auto;
        }

        .ad-modal-container::-webkit-scrollbar {
            width: 6px;
        }

        .ad-modal-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .ad-modal-container::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 3px;
        }

        /* Notificación de favorito */
        .favorite-notification {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: white;
            padding: 15px 20px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            animation: slideInRight 0.4s ease-out;
            z-index: 10000;
        }

        @keyframes slideInRight {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOutRight {
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        /* Botón flotante para reapertura */
        .ad-floating-btn {
            position: fixed;
            bottom: 30px;
            left: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            z-index: 999;
            box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
            transition: all 0.3s ease;
            animation: popIn 0.4s ease-out;
        }

        .ad-floating-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 12px 35px rgba(0, 188, 212, 0.4);
        }

        .ad-floating-btn:active {
            transform: scale(0.95);
        }

        @keyframes popIn {
            from {
                opacity: 0;
                transform: scale(0);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @media (max-width: 768px) {
            .ad-floating-btn {
                bottom: 20px;
                left: 20px;
                width: 56px;
                height: 56px;
                font-size: 24px;
            }
        }