/* Estilos generales para el contenedor */
.container {
    max-width: 1200px;
    padding: 2rem 4rem;
    position: relative;
    animation: fadeIn 1s ease-in;
}

/* Hero Section */
[data-theme] .hero-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    min-height: 100vh;
}

[data-theme] .hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    z-index: -2;
}

[data-theme] .hero-section::after {
    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 1440 800"><circle cx="50" cy="50" r="2" fill="rgba(59, 130, 246, 0.6)"><animate attributeName="cy" values="50;60;50" dur="2s" repeatCount="indefinite"/><animate attributeName="cx" values="50;60;50" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="150" cy="100" r="3" fill="rgba(59, 130, 246, 0.4)"><animate attributeName="cy" values="100;110;100" dur="2.2s" repeatCount="indefinite"/><animate attributeName="cx" values="150;160;150" dur="2.7s" repeatCount="indefinite"/></circle><circle cx="300" cy="200" r="2" fill="rgba(59, 130, 246, 0.5)"><animate attributeName="cy" values="200;210;200" dur="2.4s" repeatCount="indefinite"/><animate attributeName="cx" values="300;310;300" dur="2.3s" repeatCount="indefinite"/></circle><circle cx="400" cy="300" r="2" fill="rgba(59, 130, 246, 0.7)"><animate attributeName="cy" values="300;310;300" dur="2.1s" repeatCount="indefinite"/><animate attributeName="cx" values="400;410;400" dur="2.6s" repeatCount="indefinite"/></circle><circle cx="600" cy="150" r="3" fill="rgba(59, 130, 246, 0.6)"><animate attributeName="cy" values="150;160;150" dur="2.3s" repeatCount="indefinite"/><animate attributeName="cx" values="600;610;600" dur="2.4s" repeatCount="indefinite"/></circle><circle cx="800" cy="250" r="2" fill="rgba(59, 130, 246, 0.5)"><animate attributeName="cy" values="250;260;250" dur="2.5s" repeatCount="indefinite"/><animate attributeName="cx" values="800;810;800" dur="2.2s" repeatCount="indefinite"/></circle><circle cx="1000" cy="400" r="2" fill="rgba(59, 130, 246, 0.4)"><animate attributeName="cy" values="400;410;400" dur="2.6s" repeatCount="indefinite"/><animate attributeName="cx" values="1000;1010;1000" dur="2.8s" repeatCount="indefinite"/></circle><circle cx="1200" cy="500" r="4" fill="rgba(59, 130, 246, 0.8)"><animate attributeName="r" values="4;5;4" dur="2s" repeatCount="indefinite"/><animate attributeName="cy" values="500;510;500" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="1300" cy="600" r="3" fill="rgba(59, 130, 246, 0.6)"><animate attributeName="cy" values="600;610;600" dur="2.7s" repeatCount="indefinite"/><animate attributeName="cx" values="1300;1310;1300" dur="2.9s" repeatCount="indefinite"/></circle><line x1="200" y1="50" x2="250" y2="100" stroke="rgba(59, 130, 246, 0.3)" stroke-width="1"><animate attributeName="x2" values="250;300;250" dur="3s" repeatCount="indefinite"/><animate attributeName="y2" values="100;150;100" dur="3s" repeatCount="indefinite"/></line><line x1="500" y1="200" x2="550" y2="250" stroke="rgba(59, 130, 246, 0.3)" stroke-width="1"><animate attributeName="x2" values="550;600;550" dur="3.2s" repeatCount="indefinite"/><animate attributeName="y2" values="250;300;250" dur="3.2s" repeatCount="indefinite"/></line><line x1="900" y1="400" x2="950" y2="450" stroke="rgba(59, 130, 246, 0.3)" stroke-width="1"><animate attributeName="x2" values="950;1000;950" dur="3.5s" repeatCount="indefinite"/><animate attributeName="y2" values="450;500;450" dur="3.5s" repeatCount="indefinite"/></line><circle cx="700" cy="350" r="2" fill="rgba(59, 130, 246, 0.5)"><animate attributeName="cy" values="350;360;350" dur="2.8s" repeatCount="indefinite" /><animate attributeName="opacity" values="0.5;1;0.5" dur="2s" repeatCount="indefinite"/></circle><rect x="1100" y="100" width="2" height="2" fill="rgba(59, 130, 246, 0.4)"><animate attributeName="y" values="100;120;100" dur="3s" repeatCount="indefinite"/><animate attributeName="x" values="1100;1120;1100" dur="3.2s" repeatCount="indefinite"/></rect></svg>');
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
    animation: twinkle 5s infinite alternate;
}

[data-theme="light"] .hero-section::before {
    background: linear-gradient(135deg, var(--card-bg) 0%, #ffffff 100%);
}

[data-theme="light"] .hero-section::after {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 800"><circle cx="50" cy="50" r="2" fill="rgba(30, 64, 175, 0.6)"><animate attributeName="cy" values="50;60;50" dur="2s" repeatCount="indefinite"/><animate attributeName="cx" values="50;60;50" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="150" cy="100" r="3" fill="rgba(30, 64, 175, 0.4)"><animate attributeName="cy" values="100;110;100" dur="2.2s" repeatCount="indefinite"/><animate attributeName="cx" values="150;160;150" dur="2.7s" repeatCount="indefinite"/></circle><circle cx="300" cy="200" r="2" fill="rgba(30, 64, 175, 0.5)"><animate attributeName="cy" values="200;210;200" dur="2.4s" repeatCount="indefinite"/><animate attributeName="cx" values="300;310;300" dur="2.3s" repeatCount="indefinite"/></circle><circle cx="400" cy="300" r="2" fill="rgba(30, 64, 175, 0.7)"><animate attributeName="cy" values="300;310;300" dur="2.1s" repeatCount="indefinite"/><animate attributeName="cx" values="400;410;400" dur="2.6s" repeatCount="indefinite"/></circle><circle cx="600" cy="150" r="3" fill="rgba(30, 64, 175, 0.6)"><animate attributeName="cy" values="150;160;150" dur="2.3s" repeatCount="indefinite"/><animate attributeName="cx" values="600;610;600" dur="2.4s" repeatCount="indefinite"/></circle><circle cx="800" cy="250" r="2" fill="rgba(30, 64, 175, 0.5)"><animate attributeName="cy" values="250;260;250" dur="2.5s" repeatCount="indefinite"/><animate attributeName="cx" values="800;810;800" dur="2.2s" repeatCount="indefinite"/></circle><circle cx="1000" cy="400" r="2" fill="rgba(30, 64, 175, 0.4)"><animate attributeName="cy" values="400;410;400" dur="2.6s" repeatCount="indefinite"/><animate attributeName="cx" values="1000;1010;1000" dur="2.8s" repeatCount="indefinite"/></circle><circle cx="1200" cy="500" r="4" fill="rgba(30, 64, 175, 0.8)"><animate attributeName="r" values="4;5;4" dur="2s" repeatCount="indefinite"/><animate attributeName="cy" values="500;510;500" dur="2.5s" repeatCount="indefinite"/></circle><circle cx="1300" cy="600" r="3" fill="rgba(30, 64, 175, 0.6)"><animate attributeName="cy" values="600;610;600" dur="2.7s" repeatCount="indefinite"/><animate attributeName="cx" values="1300;1310;1300" dur="2.9s" repeatCount="indefinite"/></circle><line x1="200" y1="50" x2="250" y2="100" stroke="rgba(30, 64, 175, 0.3)" stroke-width="1"><animate attributeName="x2" values="250;300;250" dur="3s" repeatCount="indefinite"/><animate attributeName="y2" values="100;150;100" dur="3s" repeatCount="indefinite"/></line><line x1="500" y1="200" x2="550" y2="250" stroke="rgba(30, 64, 175, 0.3)" stroke-width="1"><animate attributeName="x2" values="550;600;550" dur="3.2s" repeatCount="indefinite"/><animate attributeName="y2" values="250;300;250" dur="3.2s" repeatCount="indefinite"/></line><line x1="900" y1="400" x2="950" y2="450" stroke="rgba(30, 64, 175, 0.3)" stroke-width="1"><animate attributeName="x2" values="950;1000;950" dur="3.5s" repeatCount="indefinite"/><animate attributeName="y2" values="450;500;450" dur="3.5s" repeatCount="indefinite"/></line><circle cx="700" cy="350" r="2" fill="rgba(30, 64, 175, 0.5)"><animate attributeName="cy" values="350;360;350" dur="2.8s" repeatCount="indefinite" /><animate attributeName="opacity" values="0.5;1;0.5" dur="2s" repeatCount="indefinite"/></circle><rect x="1100" y="100" width="2" height="2" fill="rgba(30, 64, 175, 0.4)"><animate attributeName="y" values="100;120;100" dur="3s" repeatCount="indefinite"/><animate attributeName="x" values="1100;1120;1100" dur="3.2s" repeatCount="indefinite"/></rect></svg>');
    opacity: 0.7;
}

[data-theme] .hero-logo {
    width: 200px;
    height: 200px;
    border: 4px solid rgba(42, 53, 83, 0.4);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
    transition: all 0.5s ease;
}

[data-theme] .hero-logo:hover {
    transform: scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.7);
}

[data-theme] .hero-image {
    max-height: 700px;
    border-radius: 25px;
    box-shadow: var(--shadow-glam);
    transition: all 0.5s ease;
    width: 100%;
    object-fit: cover;
}

[data-theme] .hero-image:hover {
    transform: scale(1.05);
}

[data-theme] .hero-buttons .btn {
    min-width: 200px;
    font-size: 1rem;
    margin: 0.5rem;
    color: var(--text-primary) !important;
}

/* Horarios de Atención */
[data-theme] #horarios .card-body .d-flex.justify-content-between {
    background: var(--card-bg);
}

[data-theme] #horarios .card-body .d-flex.justify-content-between > span {
    color: var(--text-primary) !important;
    font-size: 0.9rem;
}

[data-theme] #horarios .card-header {
    background: var(--gradient-primary);
}

[data-theme] #horarios .card-header h4 {
    color: var(--text-primary) !important;
    font-size: 1.2rem;
}

[data-theme] #horarios .alert-info {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem;
}

[data-theme] #horarios .text-danger {
    color: #dc2626 !important;
}

/* Ubicación */
[data-theme] #ubicacion .map-container {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 25px;
    box-shadow: var(--shadow-glam);
}

[data-theme] #ubicacion .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Nuestro Personal */
[data-theme] #nuestro-personal {
    padding: 4rem 2rem;
}

[data-theme] #nuestro-personal h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

[data-theme] #nuestro-personal .row {
    justify-content: space-around;
    gap: 2rem;
}

[data-theme] #nuestro-personal .col-lg-3 {
    flex: 0 0 28%;
    max-width: 28%;
}

[data-theme] #nuestro-personal .employee-card {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    background: var(--card-bg);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

[data-theme] #nuestro-personal .employee-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elegant);
}

[data-theme] #nuestro-personal img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

[data-theme] #nuestro-personal img:hover {
    transform: scale(1.05);
}

[data-theme] #nuestro-personal h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

[data-theme] #nuestro-personal .text-muted {
    font-size: 0.9rem;
}

[data-theme] #nuestro-personal p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Preguntas Frecuentes - Carrusel Gigantesco */
[data-theme] #preguntas-frecuentes .carousel {
    max-width: 1600px; /* Más ancho */
    margin: 0 auto;
    padding: 3rem 0;
}

[data-theme] #preguntas-frecuentes .carousel-inner {
    padding: 2rem;
}

[data-theme] #preguntas-frecuentes .carousel-item .card {
    background: var(--card-bg);
    border: 4px solid var(--border-color);
    border-radius: 30px;
    transition: all 0.4s ease;
    height: 800px; /* Altura gigantesca */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme] #preguntas-frecuentes .carousel-item .card:hover {
    transform: translateY(-20px);
    box-shadow: 0 25px 80px rgba(var(--primary-color-rgb), 0.5);
}

[data-theme] #preguntas-frecuentes .card-img-top {
    height: 550px; /* Imagen gigante */
    object-fit: cover;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    width: 100%;
}

[data-theme] #preguntas-frecuentes .card-body {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-theme] #preguntas-frecuentes .card-title {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

[data-theme] #preguntas-frecuentes .card-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
}

[data-theme] #preguntas-frecuentes .carousel-control-prev,
[data-theme] #preguntas-frecuentes .carousel-control-next {
    width: 8%; /* Controles más amplios */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

[data-theme] #preguntas-frecuentes .carousel-control-prev:hover,
[data-theme] #preguntas-frecuentes .carousel-control-next:hover {
    opacity: 1;
}

[data-theme] #preguntas-frecuentes .carousel-control-prev-icon,
[data-theme] #preguntas-frecuentes .carousel-control-next-icon {
    background-color: var(--gradient-primary);
    border-radius: 50%;
    padding: 3rem; /* Controles gigantes */
    width: 80px;
    height: 80px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

[data-theme] #preguntas-frecuentes .carousel-indicators {
    bottom: -50px;
}

[data-theme] #preguntas-frecuentes .carousel-indicators [data-bs-target] {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--border-color);
    opacity: 0.6;
    transition: all 0.3s ease;
}

[data-theme] #preguntas-frecuentes .carousel-indicators .active {
    background-color: var(--secondary-color);
    opacity: 1;
    transform: scale(1.3);
}

/* Promoción */
[data-theme] #promocion {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    position: relative;
    overflow: hidden;
}

[data-theme] #promocion::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: 0;
    animation: pulse 10s infinite alternate;
}

[data-theme="light"] #promocion {
    background: linear-gradient(135deg, var(--card-bg) 0%, #ffffff 100%);
}

[data-theme] #promocion .col-lg-8 {
    position: relative;
    z-index: 1;
}

[data-theme] #promocion h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

[data-theme] #promocion p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

[data-theme] #promocion .btn {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-primary) !important;
}

[data-theme] #promocion .btn:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 80%, black) 0%, var(--secondary-color) 100%);
}

/* Estilos personalizados */
.text-custom-brand {
    color: #1e40af;
}

.text-custom-accent {
    color: var(--secondary-color);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

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

/* Respuesta para pantallas pequeñas */
@media (max-width: 768px) {
    .container {
        padding: 1rem 1.5rem;
    }
    [data-theme] .hero-section {
        padding: 4rem 0;
    }
    [data-theme] .hero-logo {
        width: 150px;
        height: 150px;
    }
    [data-theme] .hero-image {
        max-height: 450px;
    }
    [data-theme] #nuestro-personal .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    [data-theme] #nuestro-personal .employee-card {
        padding: 1.5rem;
    }
    [data-theme] #nuestro-personal img {
        width: 150px;
        height: 150px;
    }
    [data-theme] #preguntas-frecuentes .carousel-item .card {
        height: 400px;
    }
    [data-theme] #preguntas-frecuentes .card-img-top {
        height: 250px;
    }
    [data-theme] #preguntas-frecuentes .card-title {
        font-size: 1.1rem;
    }
    [data-theme] #preguntas-frecuentes .card-text {
        font-size: 0.8rem;
    }
    [data-theme] #preguntas-frecuentes .carousel-control-prev-icon,
    [data-theme] #preguntas-frecuentes .carousel-control-next-icon {
        padding: 1.5rem;
        width: 40px;
        height: 40px;
    }
}