/* --- VARIABLES Y COLORES --- */
:root {
    --primary-teal: #00897B; /* Color del logo y uniformes */
    --dark-blue: #004D61;    /* Azul profundo de la marca */
    --light-bg: #E0F2F1;     /* Fondo suave para secciones */
    --white: #ffffff;
    --text-dark: #333333;
    --whatsapp-green: #25D366;
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body { 
    background-color: #f9f9f9; 
    color: var(--text-dark); 
    line-height: 1.6; 
}

a { text-decoration: none; }

/* --- HEADER Y NAVEGACIÓN --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    max-height: 80px;
    width: auto;
    display: block;
}

.nav-links { 
    display: flex; 
    gap: 2rem; 
    list-style: none;
}

.nav-links a { 
    color: var(--text-dark); 
    font-weight: 500; 
    transition: color 0.3s; 
}

.nav-links a:hover { color: var(--primary-teal); }

.hamburger { 
    display: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--dark-blue);
}

.hamburger i {
    transition: transform 0.3s ease;
    display: block;
}

/* Opcional: un efecto de rotación cuando aparece la X */
.hamburger .fa-xmark {
    transform: rotate(90deg);
    color: var(--primary-teal); /* Para que se note el cambio */
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-teal) 100%);
    color: var(--white);
    padding: 10rem 2rem 6rem;
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--white);
    color: var(--primary-teal);
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contenedor Flex para alinear texto e imagen */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: left; 
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Estilo de la Imagen Circular */
.hero-image img {
    width: 300px; 
    height: 300px; 
    object-fit: cover; 
    border-radius: 50%; 
    border: 5px solid rgba(255, 255, 255, 0.3); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Ajuste para Móviles (Responsive) */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse; 
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }
}

.carousel-section {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-container {
    max-width: 800px; /* Reducimos el ancho para que la imagen única sea protagonista */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.45, 0, 0.55, 1); /* Movimiento suave */
}

.carousel-item {
    min-width: 100%; /* Obligamos a que cada slide ocupe todo el ancho disponible */
    height: 450px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 77, 97, 0.4); /* Capa oscura para resaltar el texto */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.carousel-overlay h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.btn-carousel {
    padding: 10px 25px;
    background-color: var(--primary-teal);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

@media (max-width: 768px) {
    .carousel-item { height: 350px; }
    .carousel-overlay h3 { font-size: 1.6rem; }
}

/* --- SERVICIOS --- */
.services { 
    max-width: 1200px; 
    margin: 4rem auto; 
    padding: 0 2rem; 
    text-align: center; 
}

.section-title { 
    color: var(--dark-blue); 
    font-size: 2rem; 
    margin-bottom: 3rem; 
    display: inline-block; 
    position: relative; 
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 50px; 
    height: 3px; 
    background-color: var(--primary-teal); 
    margin: 10px auto 0; 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem; 
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-teal);
}

.service-card:hover { transform: translateY(-10px); }

.service-icon { 
    font-size: 3rem; 
    color: var(--primary-teal); 
    margin-bottom: 1rem; 
}

/* --- UBICACIÓN Y MAPA --- */
.about-location { 
    background-color: var(--light-bg); 
    padding: 4rem 2rem; 
}

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.map-col iframe {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-item i { color: var(--primary-teal); width: 25px; }

/* --- FOOTER --- */
footer { 
    background-color: var(--dark-blue); 
    color: var(--white); 
    text-align: center; 
    padding: 3rem 2rem; 
}

/* --- BOTÓN WHATSAPP --- */
.whatsapp-float {
    position: fixed; 
    width: 60px; 
    height: 60px; 
    bottom: 40px; 
    right: 40px;
    background-color: var(--whatsapp-green); 
    color: #FFF; 
    border-radius: 50px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 30px;
    z-index: 1000; 
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* --- RESPONSIVE (Móviles y Tablets) --- */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 80%;
        height: 100vh;
        padding-top: 6rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        gap: 2rem;
        align-items: center;
    }

    .nav-links.active { right: 0; }

    .location-container { 
        grid-template-columns: 1fr; 
        text-align: center;
    }

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

    .hero h1 { font-size: 2rem; }
}