/* Estilos principales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 50%, #1a2332 100%);
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
    /* Reducido de 1000px a 500px para mejorar rendimiento */
    perspective: 500px;
    /* Añadido para mejorar rendimiento en scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fondo 3D animado con capas */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(45deg,
            transparent 30%,
            rgba(0, 168, 107, 0.1) 50%,
            transparent 70%),
        linear-gradient(-45deg,
            transparent 30%,
            rgba(102, 126, 234, 0.1) 50%,
            transparent 70%),
        linear-gradient(135deg,
            transparent 30%,
            rgba(255, 165, 0, 0.08) 50%,
            transparent 70%);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    /* Reducido tiempo de animación de 30s a 60s para menos CPU */
    animation: rotate3DBackground 60s linear infinite;
    z-index: -3;
    transform-style: preserve-3d;
    /* Añadido para mejorar rendimiento */
    will-change: transform;
}

/* Capa de ondas 3D */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center,
            rgba(0, 168, 107, 0.2) 0%,
            transparent 70%),
        radial-gradient(ellipse at 80% 20%,
            rgba(102, 126, 234, 0.15) 0%,
            transparent 60%),
        radial-gradient(ellipse at 20% 80%,
            rgba(255, 165, 0, 0.1) 0%,
            transparent 50%);
    /* Reducido tiempo de animación de 15s a 30s para menos CPU */
    animation: wave3D 30s ease-in-out infinite;
    z-index: -2;
    transform-style: preserve-3d;
    /* Añadido para mejorar rendimiento */
    will-change: transform;
}

/* Partículas 3D flotantes */
.three-d-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    transform-style: preserve-3d;
    /* Añadido para mejorar rendimiento en scroll */
    contain: strict;
}

.container {
    max-width: 95%;
    margin: 0 auto;
    padding: 20px;
}

/* Desktop - máximo ancho pero menos márgenes */
@media (min-width: 1200px) {
    .container {
        max-width: 1300px;
        padding: 25px;
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Header centrado con logos a los lados */
.header-centered {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    z-index: 2;
    min-height: 220px;
    padding: 0 15px;
}

/* Contenedor de logos */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Logos laterales grandes */
.side-logo {
    width: 180px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(-50px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.lifeplus-side-logo {
    animation: bounceDownLeft 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.3s;
}

.sunshine-side-logo {
    animation: bounceDownRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.6s;
}

/* Animaciones de rebote suave desde arriba */
@keyframes bounceDownLeft {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(10px) scale(1.05);
    }
    70% {
        transform: translateY(-5px) scale(0.98);
    }
    85% {
        transform: translateY(3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bounceDownRight {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(10px) scale(1.05);
    }
    70% {
        transform: translateY(-5px) scale(0.98);
    }
    85% {
        transform: translateY(3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Cyberpunk sutil para el título */
@keyframes subtleCyberpunk {
    0% {
        filter: brightness(1) hue-rotate(0deg);
        text-shadow:
            0 0 10px rgba(0, 168, 107, 0.3),
            0 0 20px rgba(102, 126, 234, 0.2),
            0 0 5px rgba(255, 165, 0, 0.1);
    }
    50% {
        filter: brightness(1.1) hue-rotate(5deg);
        text-shadow:
            0 0 15px rgba(0, 168, 107, 0.4),
            0 0 25px rgba(102, 126, 234, 0.3),
            0 0 8px rgba(255, 165, 0, 0.2);
    }
    100% {
        filter: brightness(1.05) hue-rotate(-5deg);
        text-shadow:
            0 0 12px rgba(0, 168, 107, 0.5),
            0 0 22px rgba(102, 126, 234, 0.4),
            0 0 6px rgba(255, 165, 0, 0.3);
    }
}

/* Hover effects para logos */
.side-logo:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}

.lifeplus-side-logo:hover {
    filter: drop-shadow(0 12px 24px rgba(0, 168, 107, 0.4));
}

.sunshine-side-logo:hover {
    filter: drop-shadow(0 12px 24px rgba(255, 165, 0, 0.4));
}

.floating-logo {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

.lifeplus-logo {
    width: 100px;
    height: auto;
    top: 20%;
    left: 10%;
    animation: bounceInLeft 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 0.5s;
}

.sunshine-logo {
    width: 80px;
    height: auto;
    top: 60%;
    right: 15%;
    animation: bounceInRight 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: 1s;
}

/* Animaciones de rebote */
@keyframes bounceInLeft {
    0% {
        opacity: 0;
        transform: translateX(-200px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateX(30px) scale(1.1);
    }
    70% {
        transform: translateX(-10px) scale(0.95);
    }
    100% {
        opacity: 0.9;
        transform: translateX(0) scale(1);
    }
}

@keyframes bounceInRight {
    0% {
        opacity: 0;
        transform: translateX(200px) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateX(-30px) scale(1.1);
    }
    70% {
        transform: translateX(10px) scale(0.95);
    }
    100% {
        opacity: 0.9;
        transform: translateX(0) scale(1);
    }
}

/* Animaciones 3D de fondo */
@keyframes rotate3DBackground {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(2deg) rotateY(90deg) rotateZ(1deg);
    }
    50% {
        transform: rotateX(0deg) rotateY(180deg) rotateZ(0deg);
    }
    75% {
        transform: rotateX(-2deg) rotateY(270deg) rotateZ(-1deg);
    }
    100% {
        transform: rotateX(0deg) rotateY(360deg) rotateZ(0deg);
    }
}

@keyframes wave3D {
    0%, 100% {
        transform: translateZ(-50px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateZ(-25px) scale(1.05) translateY(-10px);
        opacity: 1;
    }
    50% {
        transform: translateZ(-75px) scale(0.95) translateY(5px);
        opacity: 0.9;
    }
    75% {
        transform: translateZ(-40px) scale(1.02) translateY(-7px);
        opacity: 1;
    }
}

@keyframes particle3D {
    0% {
        transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translate3d(50px, -100px, 25px) rotateX(180deg) rotateY(90deg);
        opacity: 0;
    }
}

/* Efecto hover interactivo */
.floating-logo:hover {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}

/* Contenido del header */
.header-content {
    text-align: center;
    flex: 1;
    max-width: 600px;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-content h1 i {
    color: #e53e3e;
    flex-shrink: 0;
    font-size: 2rem;
}

/* Título elegante con cyberpunk sutil */
.elegant-title {
    opacity: 0;
    animation: elegantTitleEntry 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               subtleCyberpunk 4s ease-in-out infinite alternate;
    animation-delay: 0.9s, 2.5s;
    text-shadow:
        0 0 10px rgba(0, 168, 107, 0.3),
        0 0 20px rgba(102, 126, 234, 0.2),
        0 0 5px rgba(255, 165, 0, 0.1);
}

@keyframes elegantTitleEntry {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtítulo elegante */
.subtitle {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.8s;
    margin-bottom: 20px;
}

/* Header actions */
.header-actions {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 2.1s;
}

/* Animación fadeInUp mejorada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ondas de color dinámicas */
.waves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.wave {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: waveExpand 3s ease-out infinite;
}

.wave:nth-child(1) {
    background: radial-gradient(circle, rgba(0, 168, 107, 0.3) 0%, transparent 70%);
    animation-delay: 0s;
}

.wave:nth-child(2) {
    background: radial-gradient(circle, rgba(229, 62, 62, 0.2) 0%, transparent 70%);
    animation-delay: 1s;
}

.wave:nth-child(3) {
    background: radial-gradient(circle, rgba(45, 55, 72, 0.15) 0%, transparent 70%);
    animation-delay: 2s;
}

@keyframes waveExpand {
    0% {
        width: 0;
        height: 0;
        top: 50%;
        left: 50%;
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        width: 600px;
        height: 600px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
    }
}

/* Partículas energéticas */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background: linear-gradient(45deg, #00a86b, #e53e3e);
    border-radius: 50%;
    pointer-events: none;
    animation: energyParticle 4s linear infinite;
    box-shadow: 0 0 6px rgba(0, 168, 107, 0.5);
}

@keyframes energyParticle {
    0% {
        transform: translateY(100vh) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) scale(1) rotate(90deg);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1) rotate(270deg);
    }
    100% {
        transform: translateY(0) scale(0) rotate(360deg);
        opacity: 0;
    }
}

.header-actions {
    margin-top: 15px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00a86b 0%, #00796b 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.contact-btn i {
    font-size: 0.9rem;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Instrucciones de búsqueda */
.search-instruction {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.instruction-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.instruction-title i {
    color: #667eea;
}

.instruction-text {
    font-size: 1rem;
    color: #718096;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #00a86b;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #f7fafc;
    color: #4a5568;
}

.search-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.search-options {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00a86b;
}

/* Stats Section */
.stats-section {
    margin-bottom: 30px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Results Section */
.results-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #00a86b;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.pdf-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Reducido tiempo de transición de 0.3s a 0.2s para mejor rendimiento */
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    /* Añadido para mejorar rendimiento */
    will-change: transform, box-shadow;
}

.pdf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pdf-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pdf-icon {
    width: 40px;
    height: 40px;
    background: #fed7d7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.pdf-icon i {
    color: #e53e3e;
    font-size: 1.2rem;
}

.pdf-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    margin-bottom: 5px;
}

.pdf-description {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pdf-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #718096;
}

.meta-item i {
    width: 16px;
    margin-right: 8px;
    color: #a0aec0;
}

.pdf-actions {
    display: flex;
    gap: 10px;
}

.download-btn {
    flex: 1;
    padding: 10px;
    background: #00a86b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.view-btn {
    padding: 10px;
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #cbd5e0;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #4a5568;
}

.no-results p {
    font-size: 1rem;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.upload-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-info {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.index-link {
    color: #00a86b;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed #00a86b;
    transition: all 0.3s ease;
}

.index-link:hover {
    color: #5a67d8;
    border-bottom-style: solid;
}

.upload-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #00a86b;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #00a86b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.4;
}

.step-text code {
    background: #e2e8f0;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.main-site-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.main-site-link:hover {
    color: #ffffff;
}

.main-site-link i {
    font-size: 1.1rem;
}

.team-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.sunshine-logo {
    height: 30px;
    width: auto;
    opacity: 0.9;
    border-radius: 4px;
}

.team-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    /* Header responsive */
    .header-centered {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
        padding: 20px 0;
    }

    .side-logo {
        width: 60px;
        height: auto;
    }

    .header-content {
        max-width: 100%;
        order: -1;
    }

    .header-content h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .search-container {
        padding: 20px;
    }

    .instruction-title {
        font-size: 1.3rem;
    }

    .instruction-text {
        font-size: 0.9rem;
    }

    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-section {
        min-width: auto;
    }

    .team-logo {
        justify-content: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .upload-steps {
        grid-template-columns: 1fr;
    }

    .pdf-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .search-section {
        margin-bottom: 20px;
    }

    .results-section {
        padding: 20px;
    }

    .upload-section {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdf-card {
    animation: fadeIn 0.5s ease-out;
}

.pdf-card:nth-child(1) { animation-delay: 0.1s; }
.pdf-card:nth-child(2) { animation-delay: 0.2s; }
.pdf-card:nth-child(3) { animation-delay: 0.3s; }
.pdf-card:nth-child(4) { animation-delay: 0.4s; }
.pdf-card:nth-child(5) { animation-delay: 0.5s; }
.pdf-card:nth-child(6) { animation-delay: 0.6s; }

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }

/* Contact Form Styles */
.contact-section {
    padding: 60px 20px;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="sun" patternUnits="userSpaceOnUse" width="50" height="50"><circle cx="25" cy="25" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23sun)"/></svg>');
    opacity: 0.3;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.contact-title i {
    color: #ffffff;
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.contact-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow:
        0 0 0 3px rgba(76, 175, 80, 0.1),
        0 4px 12px rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.cliente-info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    margin: 20px 0;
    transition: all 0.3s ease;
}

.cliente-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.submit-btn,
.reset-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    box-shadow:
        0 4px 15px rgba(255, 165, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 6px 20px rgba(255, 165, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3);
}

.reset-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.reset-btn:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.submit-btn:disabled,
.reset-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 20px;
    border-radius: 8px;
    padding: 15px;
}

.form-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contact Form Desktop Styles */
@media (min-width: 769px) {
    .contact-section {
        padding: 100px 20px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        position: relative;
        background: linear-gradient(135deg, #00a86b 0%, #00796b 100%);
    }

    .contact-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background:
            radial-gradient(circle at 20% 20%, rgba(255, 193, 7, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(255, 87, 34, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
        animation: shimmerBackground 8s ease-in-out infinite;
    }

    .contact-container {
        max-width: 1400px;
        width: 100%;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    .contact-header {
        text-align: center;
        margin-bottom: 60px;
    }

    .contact-title {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 20px;
        background: linear-gradient(45deg, #fff, #ffd54f, #fff);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: shimmerText 3s ease-in-out infinite;
        text-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
    }

    .contact-subtitle {
        font-size: 1.4rem;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 400;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .contact-form-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 30px;
        padding: 60px;
        box-shadow:
            0 25px 50px rgba(0, 0, 0, 0.15),
            0 10px 25px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.2);
        position: relative;
        overflow: hidden;
    }

    .contact-form-container::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
            45deg,
            transparent 30%,
            rgba(255, 193, 7, 0.1) 50%,
            transparent 70%
        );
        animation: shimmerSweep 4s ease-in-out infinite;
        transform: rotate(45deg);
    }

    .contact-form {
        position: relative;
        z-index: 1;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 35px;
    }

    .form-group {
        margin-bottom: 30px;
    }

    .form-group label {
        display: block;
        margin-bottom: 12px;
        font-weight: 700;
        color: #2c3e50;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 18px 25px;
        border: 2px solid #e1e8ed;
        border-radius: 15px;
        font-size: 1.1rem;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.05),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #66BB6A;
        box-shadow:
            0 0 0 4px rgba(102, 187, 106, 0.2),
            0 8px 25px rgba(102, 187, 106, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        transform: translateY(-2px);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 140px;
    }

    .checkbox-group {
        background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
        padding: 25px;
        border-radius: 20px;
        border: 2px solid #ffb74d;
        margin: 30px 0;
    }

    .checkbox-group label {
        display: flex;
        align-items: center;
        font-weight: 600;
        color: #e65100;
        font-size: 1.2rem;
        cursor: pointer;
    }

    .checkbox-group input[type="checkbox"] {
        width: 25px;
        height: 25px;
        margin-right: 15px;
        accent-color: #ff5722;
        cursor: pointer;
    }

    .cliente-info {
        background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
        padding: 35px;
        border-radius: 25px;
        border: 2px solid #ba68c8;
        margin: 30px 0;
        animation: slideDown 0.6s ease-out;
    }

    .cliente-info .form-group input {
        background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
        border-color: #ce93d8;
    }

    .cliente-info .form-group input:focus {
        border-color: #9c27b0;
        box-shadow:
            0 0 0 4px rgba(156, 39, 176, 0.2),
            0 8px 25px rgba(156, 39, 176, 0.15);
    }

    .form-actions {
        display: flex;
        gap: 25px;
        justify-content: center;
        margin-top: 50px;
    }

    .submit-btn,
    .reset-btn {
        padding: 18px 45px;
        border: none;
        border-radius: 50px;
        font-size: 1.2rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .submit-btn {
        background: linear-gradient(45deg, #ff6b35, #f7931e);
        color: white;
        box-shadow:
            0 8px 25px rgba(255, 107, 53, 0.4),
            0 4px 15px rgba(255, 107, 53, 0.2);
    }

    .submit-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow:
            0 12px 35px rgba(255, 107, 53, 0.6),
            0 6px 20px rgba(255, 107, 53, 0.3);
    }

    .reset-btn {
        background: linear-gradient(45deg, #6c757d, #495057);
        color: white;
        box-shadow:
            0 8px 25px rgba(108, 117, 125, 0.4),
            0 4px 15px rgba(108, 117, 125, 0.2);
    }

    .reset-btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow:
            0 12px 35px rgba(108, 117, 125, 0.6),
            0 6px 20px rgba(108, 117, 125, 0.3);
    }

    .form-message {
        margin-top: 30px;
        padding: 20px;
        border-radius: 15px;
        text-align: center;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .form-message-success {
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
        color: #155724;
        border: 2px solid #c3e6cb;
    }

    .form-message-error {
        background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
        color: #721c24;
        border: 2px solid #f5c6cb;
    }

    .message-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .message-content i {
        font-size: 1.5rem;
    }
}

/* Contact Form Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 30px 15px;
    }

    .contact-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .contact-form-container {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .submit-btn,
    .reset-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 1.5rem;
    }

    .contact-form-container {
        padding: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .submit-btn,
    .reset-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* WhatsApp Link Styles */
.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(37, 211, 102, 0.1);
}

.whatsapp-link:hover {
    color: #128C7E;
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-2px);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 240px;
    height: 65px;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    /* Mostrar en todas las versiones */
    display: block;
    /* Añadir animación */
    animation: floatWhatsApp 3s ease-in-out infinite;
}

/* Nueva sección de WhatsApp fija después del formulario */
.whatsapp-section {
    margin: 20px 0 10px 0;
    text-align: center;
    clear: both;
}

.whatsapp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.whatsapp-fixed-btn {
    width: 250px;
    height: 65px;
    background: #25D366;
    color: white;
    border-radius: 32.5px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: heartbeat 2s infinite;
    border: 3px solid rgba(255, 255, 255, 0.8);
    gap: 8px;
    padding: 0 15px;
    white-space: nowrap;
}

.whatsapp-fixed-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-fixed-btn i {
    font-size: 24px;
}

.whatsapp-float-button {
    width: 100%;
    height: 100%;
    background: #25D366;
    color: white;
    border-radius: 32.5px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: heartbeat 2s infinite;
    border: 3px solid rgba(255, 255, 255, 0.8);
    gap: 8px;
    padding: 0 15px;
    white-space: nowrap;
}

.whatsapp-float-button i {
    font-size: 24px;
}

.whatsapp-float-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* Versión móvil más pequeña */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 200px;
        height: 55px;
        bottom: 20px;
        right: 15px;
    }

    /* Ocultar botón integrado en vídeo para móvil (evitar duplicación) */
    .video-whatsapp-cta {
        display: none;
    }

    .whatsapp-float-button {
        font-size: 12px;
        border-radius: 27.5px;
        gap: 6px;
        padding: 0 12px;
    }

    .whatsapp-float-button i {
        font-size: 20px;
    }
}

/* Ajustes para tablets y desktop */
@media (min-width: 769px) {
    /* Mostrar botón integrado en desktop */
    .video-whatsapp-cta {
        display: block;
    }

    /* Mostrar botón flotante en desktop también */
    .whatsapp-float {
        display: block;
    }
}

/* Opción 1: Diseño tipo VitalDetoxCare (solo icono) - ACTUAL */
/* Para versión con texto, descomentar las clases siguientes */

@keyframes heartbeat {
    0% { transform: scale(1); }
    20% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    80% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes floatWhatsApp {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.whatsapp-link i {
    font-size: 1.2em;
}

/* Footer - Crédito del desarrollador */
.developer-credit {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.developer-credit:hover {
    opacity: 1;
}

.credit-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .footer-section.developer-credit {
        order: -1;
        margin-bottom: 15px;
        opacity: 0.7;
    }

    .credit-text {
        font-size: 0.75rem;
    }

    .footer-section.legal-disclaimer {
        order: -2;
        margin-bottom: 10px;
    }

    .disclaimer-text {
        font-size: 0.7rem;
    }
}

/* Legal Disclaimer Styles */
.legal-disclaimer {
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.legal-disclaimer:hover {
    opacity: 0.8;
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-decoration: none;
}

.disclaimer-text i {
    margin-right: 3px;
    font-size: 0.8rem;
}

.disclaimer-text a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.disclaimer-text a:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Legal Modal Styles */
.legal-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.legal-modal-content {
    background-color: #fff;
    margin: 20px;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 85%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.legal-modal.show .legal-modal-content {
    transform: scale(1);
}

.legal-modal-header {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.legal-modal-close {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.legal-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.legal-modal-body {
    padding: 18px;
}

.legal-notice h4 {
    color: #1565c0;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-notice h4 i {
    color: #1565c0;
}

.legal-notice p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.legal-points {
    margin: 25px 0;
}

.legal-point {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1565c0;
}

.legal-point i {
    color: #1565c0;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-point div {
    flex: 1;
}

.legal-point strong {
    color: #1565c0;
    display: block;
    margin-bottom: 5px;
}

.legal-disclaimer-text {
    margin-top: 25px;
    padding: 20px;
    background-color: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.legal-disclaimer-text em {
    color: #1976d2;
    font-style: italic;
    line-height: 1.6;
}

.legal-modal-footer {
    padding: 20px 25px;
    background-color: #f5f5f5;
    border-radius: 0 0 15px 15px;
    text-align: center;
}

.legal-modal-btn {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 101, 192, 0.3);
}

/* Responsive for modal */
@media (max-width: 768px) {
    .legal-modal-content {
        width: 95%;
        margin: 10px;
    }

    .legal-modal-header {
        padding: 15px 20px;
    }

    .legal-modal-header h3 {
        font-size: 1.2rem;
    }

    .legal-modal-body {
        padding: 20px;
    }

    .legal-point {
        flex-direction: column;
        gap: 10px;
    }

    .legal-point i {
        align-self: flex-start;
    }
}

/* Video Demo Section - Enhanced */
.video-section {
    margin: 60px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header para la sección de videos */
.videos-header {
    text-align: center;
    margin-bottom: 50px;
}

.videos-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.videos-subtitle {
    font-size: 1.2rem;
    color: #546e7a;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid principal para los videos */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* Responsive para videos */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
    }
}

/* Tarjetas individuales de video */
.video-card {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(248, 250, 252, 0.98) 100%);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Contenido de la tarjeta de video */
.video-card-content {
    margin-top: 30px;
    width: 100%;
}

.video-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1565c0;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.video-card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #37474f;
    margin-bottom: 25px;
    opacity: 0.9;
}

.video-card-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.video-card-features .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #455a64;
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(21, 101, 192, 0.1);
    transition: all 0.3s ease;
}

.video-card-features .feature-item:hover {
    background: rgba(21, 101, 192, 0.1);
    border-color: rgba(21, 101, 192, 0.3);
    transform: translateX(5px);
}

.video-card-features .feature-item i {
    font-size: 1.2rem;
    color: #1565c0;
    text-shadow: 0 0 10px rgba(21, 101, 192, 0.3);
}

/* Contenedor anterior para compatibilidad */
.video-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.phone-mockup {
    flex-shrink: 0;
    perspective: 1000px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 2px #333,
        inset 0 0 0 2px #000;
    position: relative;
    transform-style: preserve-3d;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) rotateY(-2deg); }
    50% { transform: translateY(-10px) rotateY(2deg); }
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* Botón de sonido personalizado */
.sound-toggle {
    position: absolute;
    top: 50px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.sound-toggle:active {
    transform: scale(0.95);
}

/* Animación de pulso para llamar la atención */
@keyframes soundPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.sound-toggle.visible {
    animation: soundPulse 2s infinite;
}

/* Efecto de sonido activado */
.sound-toggle.active {
    background: rgba(76, 175, 80, 0.8);
    border-color: rgba(76, 175, 80, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sound-toggle {
        width: 35px;
        height: 35px;
        font-size: 14px;
        top: 40px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .sound-toggle {
        width: 30px;
        height: 30px;
        font-size: 12px;
        top: 35px;
        right: 10px;
    }
}

.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Para móviles: prevenir pantalla completa */
@media (max-width: 768px) {
    .phone-video {
        pointer-events: auto;
    }

    /* Forzar reproducción inline en iOS */
    .phone-video::-webkit-media-controls {
        opacity: 1;
    }

    .phone-video::-webkit-media-controls-start-playback-button {
        display: none !important;
    }

    /* Superficie táctil personalizada para móviles */
    .phone-screen::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 15;
        cursor: pointer;
        display: none;
    }

    @media (hover: none) and (pointer: coarse) {
        .phone-screen::after {
            display: block;
        }
    }
}

.phone-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #555;
}

.video-content {
    flex: 1;
    color: #2c3e50;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(248, 250, 252, 0.98) 100%);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1565c0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.video-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #37474f;
    opacity: 1;
}

.video-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #455a64;
}

.feature-item i {
    font-size: 1.5rem;
    color: #1565c0;
    text-shadow: 0 0 10px rgba(21, 101, 192, 0.3);
}

/* Botón de WhatsApp integrado en el módulo de video */
.video-whatsapp-cta {
    margin-top: 30px;
    text-align: center;
}

.video-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 15px 25px;
    border-radius: 32.5px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: heartbeat 2s infinite;
    border: 3px solid rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 240px;
}

.video-whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

.video-whatsapp-btn i {
    font-size: 24px;
}

.video-whatsapp-btn .btn-text {
    font-size: 16px;
    font-weight: 600;
}

/* Responsive Design para Enhanced Video Section */
@media (max-width: 768px) {
    /* Header responsive */
    .videos-title {
        font-size: 2rem;
    }

    .videos-subtitle {
        font-size: 1rem;
    }

    /* Grid responsive - videos apilados */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    /* Tarjetas de video en móvil */
    .video-card {
        padding: 25px 20px;
    }

    .video-card-title {
        font-size: 1.3rem;
    }

    .video-card-description {
        font-size: 0.95rem;
    }

    .video-card-features {
        gap: 10px;
    }

    .video-card-features .feature-item {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    /* Contenedor anterior para compatibilidad */
    .video-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .phone-frame {
        width: 250px;
        height: 500px;
    }

    .video-title {
        font-size: 2rem;
    }

    .video-features {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .feature-item {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Header en móviles pequeños */
    .videos-title {
        font-size: 1.8rem;
    }

    .videos-subtitle {
        font-size: 0.95rem;
    }

    /* Grid en móviles pequeños */
    .videos-grid {
        gap: 25px;
        padding: 0 10px;
    }

    /* Tarjetas en móviles pequeños */
    .video-card {
        padding: 20px 15px;
    }

    .video-card-title {
        font-size: 1.2rem;
    }

    .video-card-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .video-card-features {
        gap: 8px;
    }

    .video-card-features .feature-item {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .video-card-features .feature-item i {
        font-size: 1rem;
    }

    /* Phone mockup en móviles pequeños */
    .phone-frame {
        width: 200px;
        height: 400px;
        border-radius: 30px;
        padding: 15px;
    }

    .phone-notch {
        width: 120px;
        height: 20px;
        top: 15px;
    }

    /* Estilos originales para compatibilidad */
    .video-title {
        font-size: 1.8rem;
    }

    .video-description {
        font-size: 1rem;
    }
}

/* ========================================
   BANNER LEGAL IMPOSIBLE DE IGNORAR - MERCADO AMERICANO
   ======================================== */

/* Banner principal - IMPOSIBLE DE IGNORAR */
.us-market-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 20px;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4);
    border-bottom: 4px solid #ff5252;
    font-family: 'Inter', Arial, sans-serif;
    text-align: center;
    animation: pulse-banner 2s infinite;
}

@keyframes pulse-banner {
    0% { box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(211, 47, 47, 0.8); }
    100% { box-shadow: 0 4px 20px rgba(211, 47, 47, 0.4); }
}

.us-market-banner .banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.us-market-banner .banner-text {
    flex: 1;
    min-width: 300px;
}

.us-market-banner .banner-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.us-market-banner .banner-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.4;
}

.us-market-banner .banner-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.us-market-banner .accept-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.us-market-banner .accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.us-market-banner .details-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.us-market-banner .details-btn:hover {
    background: white;
    color: #d32f2f;
}

/* Overlay de bloqueo */
.us-market-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Modal de confirmación obligatoria */
.us-market-modal {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid #d32f2f;
}

.us-market-modal .modal-title {
    color: #d32f2f;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.us-market-modal .modal-subtitle {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.5;
}

.us-market-modal .modal-details {
    background: #fff3e0;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border-left: 6px solid #ff6f00;
    text-align: left;
}

.us-market-modal .modal-details h4 {
    color: #d32f2f;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.us-market-modal .modal-details ul {
    margin: 0;
    padding-left: 20px;
}

.us-market-modal .modal-details li {
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.us-market-modal .modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.us-market-modal .confirm-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.us-market-modal .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Indicador permanente en el header */
.us-market-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1000;
    animation: pulse-indicator 3s infinite;
}

@keyframes pulse-indicator {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Ajuste del body cuando el banner está activo */
.body-with-banner {
    padding-top: 120px !important;
}

.body-with-overlay {
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    .us-market-banner {
        padding: 15px;
    }

    .us-market-banner .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .us-market-banner .banner-title {
        font-size: 1.2rem;
    }

    .us-market-banner .banner-subtitle {
        font-size: 1rem;
    }

    .us-market-modal {
        padding: 30px 20px;
    }

    .us-market-modal .modal-title {
        font-size: 1.6rem;
    }

    .us-market-modal .modal-subtitle {
        font-size: 1.1rem;
    }

    .body-with-banner {
        padding-top: 160px !important;
    }
}

/* ========================================
   FIN DEL BANNER IMPOSIBLE DE IGNORAR
   ======================================== */

/* Estilos para resultados mejorados - Generado automáticamente */

/* Estilos para tarjetas de resultados mejoradas */
.enhanced-result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    /* Reducido tiempo de transición de 0.3s a 0.2s para mejor rendimiento */
    transition: all 0.2s ease;
    /* Añadido para mejorar rendimiento */
    will-change: transform, box-shadow;
}

.enhanced-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title-section h3 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.category-badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.category-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.card-description {
    margin-bottom: 1.5rem;
}

.card-description p {
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.card-composition {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.composition-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
}

.composition-section i {
    color: #6366f1;
}

.ingredients-list,
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredients-list li,
.benefits-list li {
    padding: 0.25rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1rem;
}

.ingredients-list li:before,
.benefits-list li:before {
    content: "•";
    color: #6366f1;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.meta-item i {
    color: #9ca3af;
}

.pdf-actions {
    display: flex;
    gap: 0.75rem;
}

.download-btn,
.view-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.download-btn {
    background: #6366f1;
    color: white;
}

.download-btn:hover {
    background: #4f46e5;
}

.view-btn {
    background: #f3f4f6;
    color: #374151;
}

.view-btn:hover {
    background: #e5e7eb;
}

/* Responsive para las tarjetas mejoradas */
@media (max-width: 768px) {
    .card-composition {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .pdf-actions {
        flex-direction: column;
    }
}

/* Aviso compacto sobre el footer */
.us-market-compact-notice {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    margin: 0;
}

.notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notice-content:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notice-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.notice-text i {
    color: #fbbf24;
    font-size: 1rem;
}

.notice-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.notice-toggle i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.notice-details {
    display: none;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.notice-details-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.notice-details-content h4 {
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h5 {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-section ul {
    margin: 0;
    padding-left: 20px;
}

.info-section li {
    margin-bottom: 6px;
    line-height: 1.4;
    color: #4b5563;
}

.notice-highlight {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}

.notice-highlight p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

/* Responsive para el aviso compacto */
@media (max-width: 768px) {
    .notice-content {
        padding: 10px 15px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .notice-text {
        font-size: 0.8rem;
        gap: 6px;
    }

    .notice-details-content {
        padding: 15px;
    }

    .notice-details-content h4 {
        font-size: 1.1rem;
    }

    .info-section h5 {
        font-size: 0.9rem;
    }
}

/* Botón flotante para información de mercado americano */
.us-market-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.us-market-float-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
    opacity: 1;
}

.us-market-float-btn:active {
    transform: translateY(0);
}

/* Modal informativo de mercado americano */
.us-market-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.us-market-info-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.us-market-info-modal .modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.us-market-info-modal.active .modal-content {
    transform: scale(1);
}

.us-market-info-modal .modal-header {
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: white;
    padding: 20px 25px;
    border-radius: 16px 16px 0 0;
    text-align: center;
}

.us-market-info-modal .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.us-market-info-modal .modal-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.us-market-info-modal .modal-body {
    padding: 25px;
}

.us-market-info-modal .modal-section {
    margin-bottom: 25px;
}

.us-market-info-modal .modal-section h4 {
    color: #1565c0;
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.us-market-info-modal .modal-section ul {
    margin: 0;
    padding-left: 20px;
}

.us-market-info-modal .modal-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.us-market-info-modal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.us-market-info-modal .modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.us-market-info-modal .primary-btn {
    background: #1565c0;
    color: white;
}

.us-market-info-modal .primary-btn:hover {
    background: #0d47a1;
}

.us-market-info-modal .secondary-btn {
    background: #e5e7eb;
    color: #374151;
}

.us-market-info-modal .secondary-btn:hover {
    background: #d1d5db;
}
