/* ===== ESTILOS GENERALES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 0;
    width: 100%;
    line-height: 1.6;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 5px 0;
    width: 100%;
    background-color: #0033cc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 0 15px;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    background-color: white;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 5px;
    padding: 5px;
}

.navbar-nav .nav-link {
    font-weight: bold;
    font-size: 16px;
    color: #ffcc00 !important;
    transition: color 0.3s ease;
    padding: 10px 15px !important;
}

.navbar-nav .nav-link:hover {
    color: #ff6600 !important;
}

.nav-link.highlight {
    background-color: #ffcc00;
    color: #0033cc !important;
    border-radius: 25px;
    margin-left: 10px;
}

.nav-link.highlight:hover {
    background-color: #ff6600;
    color: white !important;
}

/* ===== BANNER PRINCIPAL ===== */
.banner {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    overflow: hidden;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.banner-text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin-bottom: 30px;
}

.banner-text h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    color: #ffcc00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-text p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.banner-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-buttons a {
    background: linear-gradient(45deg, #ffcc00, #ff6600);
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

/* ===== MAIN CONTENT ===== */
main {
    padding-top: 80px;
    width: 100%;
    margin: 0;
}

/* ===== SECCIÓN SOBRE NOSOTROS ===== */
.flex-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
    padding: 0 20px;
}

.flex-column {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    text-align: center;
    border-radius: 15px;
    flex: 1;
    transition: all 0.3s ease;
    max-width: 300px;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.flex-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.flex-column:nth-child(1) { transform: translateY(0px); }
.flex-column:nth-child(2) { transform: translateY(20px); }
.flex-column:nth-child(3) { transform: translateY(40px); }
.flex-column:nth-child(4) { transform: translateY(60px); }

.flex-column:nth-child(1):hover { transform: translateY(-10px); }
.flex-column:nth-child(2):hover { transform: translateY(10px); }
.flex-column:nth-child(3):hover { transform: translateY(30px); }
.flex-column:nth-child(4):hover { transform: translateY(50px); }

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.flex-column h3 {
    color: #0033cc;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.flex-column p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* ===== SECCIONES DESTACADAS ===== */
.highlight-section {
    background: linear-gradient(135deg, #0033cc, #0056b3);
    padding: 60px 20px;
    border-radius: 0;
    color: white;
    margin-bottom: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.highlight-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"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    pointer-events: none;
}

.highlight-section h1 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
    color: #ffcc00;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight-section p {
    color: white;
    font-size: 1.1rem;
}

/* ===== SECCIÓN DE SERVICIOS ===== */
#services {
    background: linear-gradient(135deg, #0056b3, #003d99);
    position: relative;
}

#services .row {
    position: relative;
    z-index: 2;
}

.service-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
}

.service-box:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 1);
}

.service-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-box h3 {
    color: #0033cc;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.service-box p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* ===== TESTIMONIOS ===== */
#testimonials {
    padding: 60px 20px;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.testimonial {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    margin: 0 auto 30px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial img {
    border: 4px solid #ffcc00;
    margin-bottom: 20px;
}

.testimonial h2 {
    color: #0033cc;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.testimonial p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

/* ===== SECCIÓN DE CONTACTO ===== */
#contact {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    color: #333;
}

#contact h1 {
    color: #0033cc;
}

.contact-form-container {
    max-width: 100%;
}

.map-container iframe {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.address-container {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.address-container h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0033cc;
    margin-bottom: 10px;
}

.address-container p {
    font-size: 1.1rem;
    color: #555;
}

/* ===== FORMULARIO ===== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-body {
    padding: 30px;
}

.form-control {
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0033cc;
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 204, 0.25);
}

.btn-primary {
    background: linear-gradient(45deg, #0033cc, #0056b3);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 51, 204, 0.3);
    background: linear-gradient(45deg, #0056b3, #0033cc);
}

/* ===== REDES SOCIALES ===== */
.social-icons a {
    color: #0033cc;
    margin: 0 15px;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: #ff6600;
    transform: translateY(-5px);
}

/* ===== AULA VIRTUAL ===== */
#virtual-classroom {
    background: linear-gradient(rgba(0, 51, 204, 0.8), rgba(0, 86, 179, 0.8)), url('imagen/aula_virtual.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.btn-aula-virtual, .btn-simulador, .btn-moodle, .btn-support {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ffcc00, #ff6600);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    margin: 10px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-aula-virtual:hover, .btn-simulador:hover, .btn-moodle:hover, .btn-support:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
    text-decoration: none;
}

.simuladores-gratuitos {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    color: #333;
    backdrop-filter: blur(10px);
}

.simulador-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 30px 0;
}

.simulador {
    flex: 1 1 30%;
    background: white;
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    min-width: 250px;
    transition: transform 0.3s ease;
}

.simulador:hover {
    transform: translateY(-5px);
}

/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ===== BOTÓN SCROLL ===== */
.scroll-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: linear-gradient(45deg, #ff6600, #ff8533);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 14px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    color: white;
    padding: 30px 0;
    text-align: center;
    border-top: 3px solid #ffcc00;
}

/* ===== SVG WAVES ===== */
svg {
    height: 100px;
    width: 100%;
    display: block;
}

/* ===== MEDIA QUERIES ===== */

/* Pantallas grandes */
@media (min-width: 1200px) {
    .simulador {
        flex: 1 1 30%;
    }
    
    .navbar-brand img {
        width: 60px;
        height: 60px;
    }
}

/* Pantallas medianas */
@media (max-width: 1024px) {
    .flex-column {
        max-width: 45%;
    }
    
    .simulador {
        flex: 1 1 45%;
    }
    
    .banner-text h1 {
        font-size: 2.5rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Tabletas */
@media (max-width: 768px) {
    .banner {
        height: 70vh;
    }
    
    .banner-text h1 {
        font-size: 2rem;
    }
    
    .banner-text p {
        font-size: 1.2rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .flex-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .flex-column {
        max-width: 100%;
        transform: translateY(0) !important;
    }
    
    .flex-column:hover {
        transform: translateY(-10px) !important;
    }
    
    .simulador {
        flex: 1 1 100%;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
        font-size: 24px;
    }
    
    .scroll-to-top {
        bottom: 80px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 12px;
    }
    
    .social-icons a {
        font-size: 2rem;
        margin: 0 10px;
    }
}

/* Móviles */
@media (max-width: 480px) {
    .banner {
        height: 60vh;
    }
    
    .banner-text {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .banner-text h1 {
        font-size: 1.8rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
    
    .banner-buttons a {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .icon {
        width: 60px;
        height: 60px;
    }
    
    .flex-column {
        padding: 20px;
        min-width: 100%;
    }
    
    .flex-column h3 {
        font-size: 1.3rem;
    }
    
    .flex-column p {
        font-size: 0.9rem;
    }
    
    .service-box {
        padding: 20px;
    }
    
    .service-box h3 {
        font-size: 1.2rem;
    }
    
    .testimonial {
        padding: 25px 20px;
    }
    
    .testimonial img {
        width: 100px;
        height: 100px;
    }
    
    .testimonial h2 {
        font-size: 1.1rem;
    }
    
    .testimonial p {
        font-size: 0.9rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
        font-size: 20px;
    }
    
    .scroll-to-top {
        bottom: 70px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
    
    .highlight-section {
        padding: 40px 15px;
    }
    
    .highlight-section h1 {
        font-size: 2rem;
    }
    
    .social-icons a {
        font-size: 1.8rem;
        margin: 0 8px;
    }
    
    .navbar-collapse {
        background-color: rgba(0, 51, 204, 0.95);
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .banner-text h1 {
        font-size: 1.5rem;
    }
    
    .banner-text p {
        font-size: 0.9rem;
    }
    
    .flex-column {
        padding: 15px;
    }
    
    .service-box {
        padding: 15px;
    }
    
    .testimonial {
        padding: 20px 15px;
    }
    
    .highlight-section {
        padding: 30px 10px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        width: 35px;
        height: 35px;
    }
}

/* ===== ANIMACIONES Y TRANSICIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flex-column, .service-box, .testimonial {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILIDADES ===== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== GALERÍA DE IMÁGENES ===== */
.service-image-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.service-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.service-image-container:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(0, 51, 204, 0.4);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 204, 0.9), rgba(0, 86, 179, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.service-image-container:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ffcc00;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-image-container:hover .image-overlay i {
    transform: scale(1.2);
    color: #ff6600;
}

.image-overlay span {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Estilos para el texto clickeable */
.service-box h3 {
    color: #0033cc;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: bold;
}

.service-box h3:hover {
    color: #0056b3;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 51, 204, 0.2);
}

.service-box p {
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.service-box p:hover {
    color: #0033cc;
}

/* Modal de Galería */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gallery-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90%;
    margin: 2% auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #0033cc;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-close:hover {
    background: #0033cc;
    color: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 51, 204, 0.4);
}

.gallery-header {
    padding: 25px;
    background: linear-gradient(135deg, #0033cc, #0056b3);
    color: white;
    text-align: center;
    position: relative;
}

.gallery-header::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.gallery-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

.gallery-container::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%230033cc" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.gallery-images {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.gallery-main-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
    cursor: zoom-in;
}

.gallery-main-image:hover {
    transform: scale(1.1);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

/* Efecto de zoom mejorado */
.gallery-main-image.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.gallery-main-image.zoomed:hover {
    transform: scale(1.5);
}

.gallery-navigation {
    padding: 25px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    border-top: 1px solid #e9ecef;
}

.gallery-nav-btn {
    background: linear-gradient(135deg, #0033cc, #0056b3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 51, 204, 0.3);
}

.gallery-nav-btn:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 51, 204, 0.4);
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#galleryCounter {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0033cc;
    min-width: 100px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ocultar navegación cuando solo hay una imagen */
.gallery-navigation.single-image {
    display: none;
}

/* Responsive para galería */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95%;
        height: 95%;
        margin: 1% auto;
    }
    
    .gallery-header h3 {
        font-size: 1.2rem;
    }
    
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-modal-content {
        width: 98%;
        height: 98%;
        margin: 0.5% auto;
    }
    
    .gallery-header {
        padding: 15px;
    }
    
    .gallery-header h3 {
        font-size: 1rem;
    }
    
    .gallery-navigation {
        padding: 15px;
        gap: 15px;
    }
    
    .gallery-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    #galleryCounter {
        font-size: 0.9rem;
    }
    
    .service-image {
        height: 120px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .whatsapp-btn, .scroll-to-top, header, .gallery-modal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .highlight-section {
        background: white !important;
        color: black !important;
    }
}