/* --- VARIABLES Y CONFIGURACIÓN --- */
:root {
    --p-oscuro: #000039;
    --p-medio: #3e3e53;
    --p-gris: #7c7b6c;
    --p-claro: #bab986;
    --p-fondo: #f8f69f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body { 
    line-height: 1.6; 
    color: var(--p-medio); 
    overflow-x: hidden;
}

/* --- NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--p-oscuro);
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container { display: flex; align-items: center; }
.logo { color: var(--p-fondo); font-family: "Century Schoolbook Bold", serif; font-size: 1.5rem; }
.logo2 { margin-left: 10px; color: var(--p-fondo); font-family: "French Script", cursive; font-weight: bold; font-size: 2.5rem; }

.nav-links { display: flex; list-style: none; }
.nav-links li a {
    color: var(--p-fondo);
    text-decoration: none;
    margin: 0 15px;
    transition: 0.3s;
}
.nav-links li a:hover { color: var(--p-claro); }

/* --- BURGER: oculto por defecto en PC --- */
.burger {
    display: none;
    cursor: pointer;
    color: var(--p-fondo);
    font-size: 1.8rem;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 1001;
}

/* La X siempre oculta por defecto */
.burger .icon-close { display: none; }

/* --- HERO SLIDER --- */
.hero-slider {
    position: relative;
    height: 85vh;
    overflow: hidden;
    background-color: black;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide.active { opacity: 1; }

.hero-content h1 { font-size: 3rem; color: var(--p-fondo); margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 25px; }

.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--p-claro);
    color: var(--p-oscuro);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-cta:hover {
    background-color: var(--p-oscuro);
    color: var(--p-fondo);
    border: 2px solid var(--p-fondo);
    transform: scale(1.05);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 57, 0.5);
    color: var(--p-fondo);
    padding: 15px;
    border: none;
    cursor: pointer;
    z-index: 10;
}
.next { right: 0; }
.prev { left: 0; }

/* --- SECCIONES GENERALES --- */
.section { padding: 80px 10%; text-align: center; }
.bg-light { background-color: var(--p-fondo); }
h2 { margin-bottom: 30px; color: var(--p-oscuro); font-size: 2.5rem; }

/* --- GRIDS (NOSOTROS Y SERVICIOS) --- */
.about-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card, .service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,57,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-card {
    border: 1px solid rgba(0,0,57,0.1);
    border-top: 5px solid var(--p-claro);
    justify-content: space-between;
    min-height: 400px;
}

.service-card { border-bottom: 5px solid var(--p-gris); }

.about-card:hover, .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,57,0.15);
}

.about-icon, .icon-container {
    font-size: 2.5rem;
    color: var(--p-oscuro);
    margin-bottom: 20px;
    height: 70px;
    display: flex;
    align-items: center;
}

.intro-text { max-width: 800px; margin: 0 auto 50px; font-size: 1.1rem; }

/* Listas dentro de tarjetas */
.values-list, .lista {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-top: 15px;
}

.values-list li, .lista li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.values-list li i, .lista li::before {
    color: var(--p-claro);
    margin-top: 5px;
}

.lista li::before { content: "•"; font-weight: bold; }



/* Modificamos la estructura de la card */
.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,57,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,57,0.1);
    border-top: 5px solid var(--p-claro);
    min-height: 420px; /* Ajustamos un poquito el alto */
    justify-content: flex-start; /* Alineamos todo hacia arriba */
}

/* Forzamos que el contenedor del icono siempre ocupe lo mismo */
.about-icon {
    font-size: 2.5rem;
    color: var(--p-oscuro);
    margin-bottom: 20px;
    height: 80px; /* Alto fijo para el contenedor del icono */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo para los h3 para asegurar consistencia */
.about-card h3 {
    margin-bottom: 20px;
    height: 50px; /* Alto fijo para el título */
    display: flex;
    align-items: center;
    text-align: center;
}

/* Para que el texto de abajo no quede pegado al título si es muy corto */
.about-card p, .values-list {
    margin-top: 10px;
}






/* --- EQUIPO --- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.team-card {
    width: 250px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    border: 1px solid var(--p-claro);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* --- EQUIPO (AJUSTADO) --- */
.img-circle {
    width: 140px; /* Un poco más grande para que luzca mejor */
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden; /* CRUCIAL: Recorta todo lo que salga del círculo */
    border: 3px solid var(--p-claro); /* Opcional: un borde para resaltar */
    background-color: var(--p-gris); /* Color de fondo mientras carga */
}

.img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción y rellena el círculo */
    object-position: center top; /* Ajusta la posición para que no se corte la cabeza */
    display: block;
}

/* --- CONTACTO --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    gap: 30px;
    text-align: left;
}

.social-icons a {
    display: block;
    margin: 10px 0;
    color: var(--p-oscuro);
    text-decoration: none;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--p-gris);
    border-radius: 5px;
}

/* --- FOOTER --- */
.footer { background-color: var(--p-oscuro); color: var(--p-fondo); padding: 50px 10%; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer-col a { color: var(--p-claro); text-decoration: none; }

/* --- BOTONES DE WHATSAPP --- */
.btn-whatsapp-fixed {
    position: fixed;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: 0.3s;
    box-shadow: none;
    border: none;
    text-decoration: none !important;
    border-bottom: none !important;
}
.btn-wa-fix-1 { bottom: 20px; background-color: #25d366; }
.btn-wa-fix-2 { bottom: 90px; background-color: #128c7e; }
.btn-whatsapp-fixed:hover { transform: scale(1.1); }

/* --- BARRA LATERAL REDES SOCIALES --- */
.social-sidebar {
    position: fixed;
    left: 15px;
    top: 35%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1100;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    background-color: var(--p-oscuro);
    color: var(--p-fondo);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}

.sidebar-icon:hover {
    background-color: var(--p-claro);
    color: var(--p-oscuro);
    transform: translateX(5px);
}

.sidebar-hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- BOTONES AUXILIARES --- */
.btn-info-nosotros {
    margin-top: 20px;
    padding: 8px 20px;
    border: 1px solid var(--p-oscuro);
    color: var(--p-oscuro);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    border-radius: 3px;
}

.btn-info-nosotros:hover {
    background-color: var(--p-oscuro);
    color: var(--p-fondo);
}

.btn-info-equipo {
    margin-top: 25px;
    padding: 10px 25px;
    background-color: var(--p-oscuro);
    color: var(--p-fondo);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.85rem;
    transition: 0.4s;
}

.btn-info-equipo:hover {
    background-color: var(--p-claro);
    color: var(--p-oscuro);
    letter-spacing: 1px;
}

.btn-info-servicios {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--p-oscuro);
    color: var(--p-fondo);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-info-servicios:hover {
    background: var(--p-claro);
    color: var(--p-oscuro);
}

/* --- ANIMACIONES REVEAL --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {

    /* Ocultamos la barra lateral en móvil */
    .social-sidebar { display: none; }

    /* Mostramos el burger SOLO en móvil */
    .burger {
        display: flex;
    }

    /* Lógica de íconos del burger */
    .burger .icon-close { display: none; }
    .burger.toggle .icon-bars { display: none; }
    .burger.toggle .icon-close {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
    }

    /* Menú desplegable móvil */
    .nav-links {
        position: fixed;
        right: 0;
        top: 60px;
        height: 350px;
        width: 100%;
        background: var(--p-oscuro);
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-150%);
        transition: 0.5s ease-in-out;
        z-index: 999;
    }

    /* Cuando el menú está abierto */
    .nav-links.nav-active {
        transform: translateY(0);
    }

    /* Contacto en columna en móvil */
    .contact-container { grid-template-columns: 1fr; }
}


/*  Servicios detalle */

/* --- ESTILOS PÁGINA DETALLE DE SERVICIOS --- */

.container-servicios {
    max-width: 1200px;
    margin: 0 auto;
}

.services-hero {
    height: 45vh;
    background: linear-gradient(rgba(0,0,57,0.85), rgba(0,0,57,0.85)), url('../img/servicios-bg.jpg'); /* Asegúrate de tener esta imagen */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.service-detail-section {
    padding: 100px 10%;
}

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

.icon-main {
    font-size: 4rem;
    color: var(--p-claro);
    margin-bottom: 20px;
}

.service-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.item-card {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 5px solid var(--p-oscuro);
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateX(10px);
    border-left-color: var(--p-claro);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.item-card i {
    font-size: 1.6rem;
    color: var(--p-claro);
    min-width: 40px;
    text-align: center;
}

.item-card p {
    font-size: 1rem;
    color: var(--p-medio);
    line-height: 1.5;
    margin: 0;
}

/* BOTONES CTA */
.cta-container {
    margin-top: 50px;
    text-align: center;
}

.btn-cta-services {
    display: inline-block;
    padding: 16px 45px;
    background-color: var(--p-oscuro);
    color: var(--p-fondo);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    border: 2px solid var(--p-oscuro);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
}

.btn-cta-services:hover {
    background-color: transparent;
    color: var(--p-oscuro);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,57,0.15);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .service-detail-section { padding: 80px 5%; }
}

@media (max-width: 768px) {
    .services-hero h1 { font-size: 2.5rem; }
    
    .service-items-grid {
        grid-template-columns: 1fr;
    }

    .btn-cta-services {
        width: 100%;
        text-align: center;
    }
    
    .item-card:hover {
        transform: none; /* Evitamos desplazamiento lateral en móvil */
    }
}


/* ESTILOS PROFESIONALES */

/* --- ESTILOS DE PERFIL PROFESIONAL --- */
.container-profile {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-section {
    padding: 100px 0;
    background: #fff;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.profile-frame {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
}

.main-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-tag {
    color: var(--p-claro);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.job-title {
    color: var(--p-gris);
    font-style: italic;
    margin-bottom: 25px;
}

.profile-desc {
    font-size: 1.1rem;
    color: var(--p-medio);
    margin-bottom: 30px;
}

.profile-expertise h4 {
    margin-bottom: 15px;
    color: var(--p-oscuro);
}

.profile-expertise ul {
    list-style: none;
    margin-bottom: 40px;
}

.profile-expertise li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-expertise li i {
    color: var(--p-claro);
}

.profile-socials {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.profile-socials a {
    font-size: 1.5rem;
    color: var(--p-oscuro);
    transition: 0.3s;
}

.profile-socials a:hover {
    color: var(--p-claro);
    transform: scale(1.2);
}

/* GALERÍA DE TRABAJO */
.work-gallery {
    padding: 80px 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* RESPONSIVE PERFILES */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image-side {
        order: 1;
    }

    .profile-info-side {
        order: 2;
    }

    .profile-expertise li {
        justify-content: center;
    }
    
    .profile-section {
        padding: 50px 0;
    }
}