/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #828B8E;
    overflow-x: hidden;
}

html {
    margin: 0;
    padding: 0;
}

/* Fallback y variable dinámica para la altura real de la ventana */
:root {
    --vh: 1vh;
}

.container-fluid {
    padding: 0 !important;
}

/* ============================================
   SPLASH SCREEN (Quiénes somos)
   ============================================ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-screen.hidden {
    display: none;
}

.splash-logo {
    position: absolute;
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 90%;
}

@media (max-width: 767px) {
    .splash-logo {
        height: 30px;
        max-width: 80%;
    }
}

/* Contenido principal oculto inicialmente */
body.loading .page-content {
    opacity: 0;
}

.page-content {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.page-content.visible {
    opacity: 1;
}

/* ============================================
   NAVBAR (Común)
   ============================================ */
.navbar-alexis {
    width: 100%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 90px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    z-index: 100;
}

.navbar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.navbar-logo-link {
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.navbar-logo-link:hover {
    opacity: 0.8;
}

.navbar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .navbar-logo {
        height: 22px;
        max-width: calc(100vw - 120px);
    }
}

.navbar-burger {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 102;
    padding: 8px;
}

.burger-bar {
    height: 2px;
    background: #111;
    border-radius: 2px;
    display: block;
    transition: all 0.3s ease;
}

.burger-bar-1 {
    width: 30px;
}

.burger-bar-2 {
    width: 24px;
}

.burger-bar-3 {
    width: 18px;
}

/* ============================================
   OFF-CANVAS MENU (Común)
   ============================================ */
.offcanvas-menu {
    background: #fff;
    color: #111;
    z-index: 10500;
    border-radius: 12px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    margin: 20px;
    height: calc(100vh - 40px);
}

.offcanvas-menu::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.offcanvas-menu .offcanvas-header,
.offcanvas-menu .offcanvas-body {
    position: relative;
    z-index: 1;
}

.offcanvas-backdrop {
    z-index: 10400;
    background-color: rgb(0, 0, 0);
}

.offcanvas-menu .offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 24px 32px;
}

.offcanvas-menu .btn-close {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.offcanvas-menu .btn-close:hover {
    opacity: 1;
}

.offcanvas-menu .offcanvas-body {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offcanvas-menu .menu-link {
    color: #111;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 300;
    padding: 12px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

.offcanvas-menu .menu-link:hover {
    color: #111;
    border-bottom: 2px solid #111;
    transform: translateX(8px);
}



@media (max-width: 767px) {

    .offcanvas-menu {
        margin: 5px;
        height: calc(100vh - 20px);
        border-radius: 8px;
    }

    .offcanvas-menu .menu-link {
        font-size: 1rem;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS - INDEX.HTML
   ============================================ */
body.index-page {
    overflow: hidden;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Imagen estática sobre el video */
.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mitad-pantalla.playing .video-preview {
    opacity: 0;
}

.pantalla-completa.playing .video-preview {
    opacity: 0;
}

.altura-completa {
    height: calc(var(--vh, 1vh) * 100);
}

.mitad-pantalla {
    position: relative;
    overflow: hidden;
    padding: 0;
    height: 100%;
}

.pantalla-completa {
    position: relative;
    overflow: hidden;
    padding: 0;
    height: 100%;
}

.mitad-pantalla video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pantalla-completa video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: white;
    padding: 40px 20px;
    text-align: center;
    z-index: 3;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    transition: opacity 0.5s ease;
    opacity: 1;
}

.mitad-pantalla:hover .overlay::before {
    opacity: 0;
}

.overlay>* {
    position: relative;
    z-index: 1;
}

.titulo,
.titulo a {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
    text-decoration: none;
}

.subtitulo,
.subtitulo a {
    color: #fff;
    font-family: 'Playfair Display', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.titulo-centrado {
    font-family: "Playfair Display", sans-serif;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
}

.titulo-centrado h1 {
    font-size: 6rem;
    font-weight: 400;
    text-transform: uppercase;
    color: white;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767.98px) {
    .titulo-centrado {
        top: 50%;
    }

    .titulo-centrado h1 {
        font-size: 2.5rem;
        letter-spacing: 8px;
    }

    .mitad-pantalla {
        height: calc(var(--vh, 1vh) * 50);
    }

    .mitad-pantalla video {
        height: 100%;
    }

    .titulo {
        font-size: 1.5rem;
    }

    .overlay {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        padding: 12px 12px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
        text-align: center;
        pointer-events: none;
    }

    .overlay::before {
        display: none !important;
    }

    .overlay .titulo,
    .overlay .subtitulo {
        margin-bottom: 3px;
        z-index: 1;
        color: #fff;
        pointer-events: auto;
        width: 100%;
    }
}

/* ============================================
   ENLACES INFERIORES
   ============================================ */
.enlaces-inferiores {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 40px;
    z-index: 10;
    pointer-events: none;
}

.enlace-inferior {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    transition: opacity 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.enlace-izquierdo {
    animation-delay: 0.5s;
}

.enlace-derecho {
    animation-delay: 0.6s;
}

.enlace-inferior:hover {
    opacity: 0.7;
    color: white;
}

@media (max-width: 767.98px) {
    .enlaces-inferiores {
        padding: 12px 12px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .enlace-inferior {
        font-size: 0.9rem;
    }

    .pantalla-completa {
        height: calc(var(--vh, 1vh) * 100);
    }

    .pantalla-completa video {
        height: 100%;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS - QUIENES-SOMOS.HTML
   ============================================ */
.seccion-servicios {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.titulo-seccion {
    font-family: 'Playfair Display', serif;
    color: #2C3135;
    font-size: 30px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
}

@media (max-width: 767px) {
    .titulo-seccion {
        font-size: 25px;
        margin-bottom: 30px;
    }
}

/* Estilos del carrusel */
.contenedor-carrusel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carrusel-tarjetas {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
}

.tarjeta-imagen {
    position: relative;
    flex-shrink: 0;
    width: 320px;
    border-width: 1px;
    border-style: solid;
    border-color: #eee;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tarjeta-imagen:hover {
        transform: scale(1.1) translateY(20px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }
}

.imagen-tarjeta {
    width: 100%;
    height: auto;
    display: block;
    padding: 60px;
    object-fit: cover;
    transition: transform 0.6s ease;
    transform-origin: center center;
}





.puntos-paginacion {
    display: none;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.punto {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.punto.activo {
    background: #111;
    width: 12px;
    height: 12px;
}

/* Estilos para móvil */
@media (max-width: 767px) {
    .contenedor-carrusel {
        padding: 0;
        overflow: hidden;
    }

    .carrusel-tarjetas {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 20px;
        justify-content: flex-start;
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .carrusel-tarjetas::-webkit-scrollbar {
        display: none;
    }

    .tarjeta-imagen {
        scroll-snap-align: start;
        width: calc(100vw - 100px);
        max-width: 280px;
    }

    .puntos-paginacion {
        display: flex;
    }
}

.formulario-contacto {
    max-width: 700px;
    margin: 2rem auto;
}

.formulario-contacto .borde-inferior {
    background: transparent;
    border: none;
    border-bottom: 1.5px solid #828B8E;
    border-radius: 0;
    box-shadow: none;
    padding-left: 0;
}

.formulario-contacto .borde-inferior[rows] {
    resize: none;
}

.formulario-contacto .btn-container {
    text-align: right;
}

.btn-enviar {
    background: #222222;
    color: #fff;
    border-radius: 5px;
    padding: 0.6rem 2.2rem;
    border: none;
    font-weight: 600;
}

.btn-enviar:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

@media (max-width: 767px) {
    .formulario-contacto .row>[class*='col-'] {
        max-width: 100%;
        flex: 0 0 100%;
    }
}

.formulario-contacto .form-control:focus {
    background: transparent;
    box-shadow: none;
    border-color: #828B8E;
}

.formulario-contacto .form-control::placeholder {
    color: #828B8E;
    opacity: 1;
    font-size: 1rem;
}

.btn-enviar:focus {
    outline: none;
    box-shadow: none;
    border-radius: 2px;
}

/* Estilos para control de formulario */
.formulario-contacto.hidden {
    display: none;
}

#mensaje-alternativo.hidden {
    display: none;
}

#mensaje-alternativo {
    margin: 2rem auto;
    max-width: 700px;
    padding: 1rem;
}

/* Mensajes de estado del formulario */
.mensaje-estado {
    max-width: 700px;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.mensaje-estado.mostrar {
    display: block;
}

.mensaje-estado.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensaje-estado.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contador de caracteres */
.contador-caracteres {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.contador-caracteres.limite-alcanzado {
    color: #d32f2f;
    font-weight: 600;
}

.formulario-contacto .form-group {
    position: relative;
}

/* Mensajes de error de validación */
.mensaje-error-campo {
    display: none;
    color: #d32f2f;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.mensaje-error-campo.mostrar {
    display: block;
}

.formulario-contacto .form-control.error {
    border-bottom-color: #d32f2f;
}

.formulario-contacto .form-control.error:focus {
    border-bottom-color: #d32f2f;
    box-shadow: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-alexis {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 767px) {
    .footer-links-redes {
        flex-direction: row !important;
        gap: 20px;
        align-items: center;
        justify-content: center;
    }
}

.footer-link {
    font-family: 'Inter', sans-serif;
    color: #828B8E;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #111;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    color: #828B8E;
    font-size: 0.85rem;
    text-align: center;
    padding-top: 0px;
    width: 100%;
    max-width: 600px;
}

@media (max-width: 767px) {
    .footer-alexis {
        padding: 30px 20px 15px;
        margin-top: 40px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-logo {
        height: 24px;
    }

    .footer-links {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
        padding-top: 15px;
    }
}