/* Variables de Color basadas en tu logo */
:root {
    --azul-noche: #0a192f;
    --oro: #c5a059;
    --oro-light: #e2c28d;
    --blanco: #f8f9fa;
    --text-gray: #a8b2d1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--azul-noche);
    color: var(--blanco);
    line-height: 1.6;
}



/* Hero Section */
.hero {
    height: 100vh;

    background:
        linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)),
        url('logo_gestoriadocente4k-removebg.png');

    background-repeat: no-repeat;
    background-position: center center;

    /* Tamaño de la imagen */
    background-size: 58%;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--oro);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-gold {
    padding: 1rem 2.5rem;
    background: var(--oro);
    color: var(--azul-noche);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: 0.4s;
}

.btn-gold:hover {
    background: var(--oro-light);
    transform: translateY(-3px);
}

/* Nosotros / Misión y Visión */
.about {
    padding: 100px 10%;
    background: var(--blanco);
    color: var(--azul-noche);
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px;
    background: #fff;
    border-left: 5px solid var(--oro);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--azul-noche);
}

/* Servicios */
.services {
    padding: 100px 10%;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--oro);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 10px;
    transition: 0.3s;
}

.service-item:hover {
    border-color: var(--oro);
    background: rgba(197, 160, 89, 0.1);
}

.service-item h4 {
    color: var(--oro);
    margin-bottom: 10px;
}

/* Footer / Contacto */
.contact {
    padding: 60px 10%;
    background: #050c18;
    text-align: center;
    border-top: 2px solid var(--oro);
}

.contact h2 {
    color: var(--oro);
    margin-bottom: 20px;
}

.contact-info {
    margin: 20px 0;
}

.copy {
    margin-top: 40px;
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Responsivo */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2rem; }
}

.location {
    padding: 80px 10%;
    background: #f0eff1;
    color: #0a192f;
}
.container-location {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}
.map-container {
    flex: 1.5;
    min-width: 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
}
.whatsapp-btn img {
    width: 35px;
}
/* Estilos para el contacto con imagen */
.contact-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 30px;
    flex-wrap: wrap; /* Para que en celular la foto se ponga arriba del texto */
}

.profile-pic {
    width: 350px; /* Puedes ajustar el tamaño aquí */
    height: auto;
    border-radius: 10px; /* Opcional: suaviza las esquinas */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); /* Le da profundidad al PNG */
}

.contact-text {
    text-align: left;
    min-width: 280px;
}

.role {
    color: var(--oro); /* Si usas la variable de color dorado */
    font-weight: bold;
    margin-bottom: 15px;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
    }
    .contact-text {
        text-align: center;
    }
}

/* Alineación del logo y texto en el menú */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px; /* Espacio entre la imagen y el texto */
}

.nav-logo {
    height: 60px; /* Ajusta este tamaño según prefieras */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
}

.logo-text span {
    color: #c5a059; /* El color dorado para DOCENTE */
}

/* Aplicar la fuente elegante y colores correctos */
.logo-text {
    font-family: 'Playfair Display', serif; 
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    gap: 8px;
}

/* GESTORÍA en blanco */
.logo-text span:first-child {
    color: #ffffff; 
}

/* DOCENTE en dorado */
.logo-text span:last-child {
    color: #c5a059; /* Tu color dorado */
}

/* --- CARRUSEEL PARA IMÁGENES VERTICALES --- */
.carousel-container-vertical {
    width: 90%;
    max-width: 500px;      /* Al ser verticales, no necesitan ser tan anchas */
    height: 700px;         /* Aumentamos el alto para que quepa el formato vertical */
    margin: 50px auto;
    overflow: hidden;
    border-radius: 20px;
    background: #0a1428;   /* Fondo oscuro para los bordes si la imagen es delgada */
    border: 2px solid #c5a059;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}




/* AJUSTE PARA MÓVIL (Muy importante para fotos verticales) */
@media (max-width: 768px) {
    .carousel-container-vertical {
        height: 500px;     /* En el cel la bajamos un poco para que no tape todo */
        max-width: 90%;
    }
}

/* Estilos para la sección de Video */
.video-presentacion {
    padding: 60px 5%;
    background-color: #0a1428; /* El azul oscuro de tu marca */
    text-align: center;
}

.container-video {
    max-width: 900px; /* Tamaño ideal para que no se vea gigante en PC */
    margin: 0 auto;
}

.section-title {
    color: #c5a059; /* Dorado corporativo */
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    border: 2px solid #c5a059;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    line-height: 0;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.servicios-layout-centrado{
    display:flex;
    gap:30px;

    width:95%;              /* ocupa más espacio */
    max-width:1600px;       /* MÁS ancho */

    margin:50px auto;

    align-items:stretch;
}

/* CONTENEDORES */
.carousel-container-vertical{
    flex:1;

    height:850px;

    border:2px solid #c5a059;
    border-radius:20px;

    background:#02163a;

    padding:10px;          /* padding interno */

    box-sizing:border-box;

    overflow:hidden;
}

/* CONTENEDOR CAROUSEL */
#carouselServicios{
    width:100%;
    height:100%;

    position:relative;
}



/* IMÁGENES */
.carousel-img{
    max-width:100%;
    max-height:100%;

    width:auto;
    height:auto;

    object-fit:contain;

    display:block;
}
/* IMAGEN DERECHA */
.img-estatica{
    width:100%;
    height:100%;

    object-fit:contain; 

    display:block;

    border-radius:15px;
}

/* =========================
   NAVBAR GENERAL
========================= */

.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 40px;

    background:rgba(13, 27, 42, 0.95);

    backdrop-filter: blur(8px);

    box-shadow:0 4px 10px rgba(0,0,0,0.2);

    z-index:1000;

    box-sizing:border-box;
}

/* LOGO */

.logo-container{
    display:flex;
    align-items:center;
    gap:10px;
}

.nav-logo{
    width:60px;
    height:auto;
}

.logo-text{
    color:white;
    font-size:1.4rem;
    font-weight:bold;
}

.logo-text span{
    color:#d4af37;
}

/* LINKS */

.nav-links{
    display:flex;
    gap:25px;
    list-style:none;
}

.nav-links li a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:0.3s;
}

.nav-links li a:hover{
    color:#d4af37;
}

/* BOTON HAMBURGUESA */

.menu-toggle{
    display:none;
    font-size:2rem;
    color:white;
    cursor:pointer;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width: 900px){

    .navbar{
        padding:15px 20px;
    }

    .menu-toggle{
        display:block;
    }

    .nav-links{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#0d1b2a;

        flex-direction:column;
        align-items:center;

        max-height:0;
        overflow:hidden;

        transition:max-height 0.4s ease;
    }

    .nav-links.active{
        max-height:500px;
        padding:20px 0;
    }

    .nav-links li{
        margin:15px 0;
    }
}




/* =========================
   SERVICIOS
========================= */

.servicios-layout-centrado{
    display:flex;
    gap:25px;
    width:100%;
    max-width:1400px;
    margin:40px auto;
    align-items:stretch;
}

/* CONTENEDORES */

.carousel-container-vertical{
    flex:1;
    height:650px;

    border:2px solid #c5a059;
    border-radius:18px;

    background:#02163a;

    overflow:hidden;

    display:flex;
    align-items:center;
    justify-content:center;
}

/* BOOTSTRAP CAROUSEL */

#carouselServicios,
.carousel-inner,
.carousel-item{
    width:100%;
    height:100%;
}

/* IMAGENES */

.carousel-img,
.img-estatica{
    width:100%;
    height:100%;

    object-fit:contain;

    display:block;

    background:#02163a;
}

/* =========================
   RESPONSIVE MOVIL
========================= */

@media(max-width:768px){

    .servicios-layout-centrado{
        flex-direction:column;
        gap:20px;

        width:100%;

        padding:0 10px;
    }

    .carousel-container-vertical{
        width:100%;
        height:260px;

        margin:0 auto;
    }

    .services-grid{
        grid-template-columns:1fr;
    }

}


/* CONTENEDOR QUE SE MUEVE */

.carousel-track {

    display:flex;

    width:200%;
    height:100%;

    animation:scrollVerticalImages 8s infinite ease-in-out;
}

/* ANIMACION */

@keyframes scrollVerticalImages {

    /* PRIMERA IMAGEN */

    0%, 45% {
        transform: translateX(0);
    }

    /* SEGUNDA IMAGEN */

    50%, 95% {
        transform: translateX(-50%);
    }

    /* REGRESO */

    100% {
        transform: translateX(0);
    }
}