/* =========================================================
   STYLE.CSS - ESTILOS PERSONALIZADOS PARA LANDING OYM
   Este archivo controla colores, espaciados, tarjetas,
   responsividad y apariencia general de la página.
   ========================================================= */

/* Variables CSS: permiten cambiar la paleta desde un solo lugar */
:root {
    --azul-profundo: #1E3A8A;
    --calipso: #00A896;
    --celeste-vibrante: #0284C7;
    --verde-menta: #4ADE80;
    --fondo-claro: #F5FAFC;
    --texto-principal: #071833;
    --texto-suave: #5E6B7A;
    --blanco: #FFFFFF;
    --sombra-suave: 0 18px 45px rgba(7, 24, 51, 0.14);
}

/* Scroll suave para que los enlaces del menú se desplacen de forma elegante */
html {
    scroll-behavior: smooth;
}

/* Estilo base del cuerpo */
body {
    font-family: 'Inter', sans-serif;
    color: var(--texto-principal);
    background-color: var(--fondo-claro);
}

/* fuente para los titulos principales */
h1,
h2,
h3,
.marca-texto {
    font-family: 'Playfair Display', serif;
}


/* Compensa el menú fijo al saltar a secciones con enlaces internos */
section,
header {
    scroll-margin-top: 90px;
}

/* =========================================================
   MENÚ / NAVBAR
   ========================================================= */

.menu-sitio {
    background: rgba(30, 58, 138, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.logo-navbar {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 12px;
}

.marca-texto {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    margin-left: 12px;
    position: relative;
}

/* Estado activo del menú: Bootstrap ScrollSpy agrega la clase active según la sección visible */
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--verde-menta);
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--calipso), var(--verde-menta));
}

/* =========================================================
   HERO / BANNER PRINCIPAL
   ========================================================= */

.hero-section {
    /* Imagen principal del banner. Para cambiarla, reemplazar este archivo dentro de la carpeta assets. */
    background-image: url("assets/banner-juridico.png");
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    color: var(--blanco);
    overflow: hidden;
    min-height: 100vh;
    position: relative;
}

/* Capa oscura sobre el banner para que los textos y botones tengan mejor contraste. */
.hero-overlay {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(6, 21, 46, 0.16) 0%, rgba(6, 21, 46, 0.20) 43%, rgba(6, 21, 46, 0.73) 68%, rgba(6, 21, 46, 0.88) 100%);
}

/* Caja del texto del banner. Se usa un fondo translúcido para mantener elegancia y legibilidad. */
.hero-contenido {
    max-width: 650px;
    padding: 34px;
    border-radius: 30px;
    background: rgba(6, 21, 46, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(8px);
}

.etiqueta-hero,
.titulo-pequeno {
    display: inline-block;
    color: var(--verde-menta);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.6px;
    margin-bottom: 12px;
}

.hero-section h1 {
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 1.05;
    font-weight: 800;
    max-width: 850px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.hero-texto {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.86);
    max-width: 700px;
    margin-top: 22px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.btn-principal {
    background: linear-gradient(135deg, var(--calipso), var(--verde-menta));
    color: var(--texto-principal);
    border: none;
    border-radius: 999px;
    padding: 13px 26px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 168, 150, 0.28);
}

.btn-principal:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: var(--texto-principal);
}

.btn-secundario {
    color: var(--blanco);
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    padding: 11px 26px;
    font-weight: 800;
}

.btn-secundario:hover {
    border-color: var(--verde-menta);
    color: var(--verde-menta);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--blanco);
    border-radius: 18px;
    padding: 14px 22px;
    font-weight: 800;
}

.btn-whatsapp:hover {
    background: #1db954;
    color: var(--blanco);
}


/*  SECCIONES GENERALES */
.section-padding {
    padding: 100px 0;
}

.seccion-clara {
    background: var(--blanco);
}

.seccion-clara h2,
.seccion-servicios h2,
.seccion-contacto h2 {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
}

.seccion-clara p,
.seccion-contacto p,
.subtitulo-seccion {
    color: var(--texto-suave);
    font-size: 1.05rem;
}

.caja-destacada {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.10), rgba(74, 222, 128, 0.16));
    border: 1px solid rgba(0, 168, 150, 0.20);
    border-radius: 28px;
    padding: 36px;
    box-shadow: var(--sombra-suave);
}

.caja-destacada i {
    font-size: 3rem;
    color: var(--celeste-vibrante);
}

.caja-destacada h3 {
    margin-top: 18px;
    font-weight: 800;
}

/* =========================================================
   SERVICIOS
   ========================================================= */

.seccion-servicios {
    background:
        linear-gradient(180deg, var(--fondo-claro), #EAF8F8);
}

.servicio-card {
    background: var(--blanco);
    padding: 30px;
    border-radius: 26px;
    box-shadow: 0 14px 34px rgba(7, 24, 51, 0.10);
    border-top: 5px solid var(--calipso);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Pequeña animación al pasar el mouse sobre cada tarjeta */
.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(7, 24, 51, 0.16);
}

.servicio-card i {
    font-size: 2.4rem;
    color: var(--celeste-vibrante);
}

.servicio-card h3 {
    margin-top: 16px;
    font-weight: 800;
    color: var(--azul-profundo);
}

.servicio-card ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--texto-suave);
}

.servicio-card li {
    margin-bottom: 9px;
}

/* =========================================================
   CONTACTO Y FORMULARIO
   ========================================================= */

.seccion-contacto {
    background: var(--blanco);
}

.info-contacto {
    margin-top: 28px;
}

.info-contacto p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--texto-principal);
    font-weight: 600;
}

.info-contacto i {
    color: var(--calipso);
    font-size: 1.3rem;
}

.formulario-card {
    background: var(--fondo-claro);
    padding: 32px;
    border-radius: 28px;
    box-shadow: var(--sombra-suave);
    border: 1px solid rgba(0, 168, 150, 0.14);
}

.form-label {
    font-weight: 700;
    color: var(--azul-profundo);
}

.form-control {
    border-radius: 14px;
    border: 1px solid #D7E4EA;
    padding: 13px 15px;
}

.form-control:focus {
    border-color: var(--calipso);
    box-shadow: 0 0 0 0.22rem rgba(0, 168, 150, 0.16);
}

/* Aviso de seguridad antes del campo para escribir el caso */
.alerta-privacidad {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(0, 168, 150, 0.22);
    border-left: 5px solid var(--calipso);
    border-radius: 18px;
    padding: 16px 18px;
}

.alerta-privacidad i {
    color: var(--calipso);
    font-size: 1.35rem;
    margin-top: 2px;
}

.alerta-privacidad p {
    margin: 0;
    color: var(--texto-principal);
    font-size: 0.95rem;
    line-height: 1.5;
}



.mensaje-formulario {
    min-height: 24px;
    font-weight: 700;
    color: var(--azul-profundo);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer-sitio {
    background: #06152E;
    color: rgba(255, 255, 255, 0.78);
    padding: 28px 0;
}

.instagram-link {
    color: var(--verde-menta);
    font-weight: 800;
    text-decoration: none;
}

.instagram-link:hover {
    color: var(--calipso);
}


/* Botón de política de privacidad en el footer */
.btn-politica {
    background: transparent;
    border: none;
    color: var(--verde-menta);
    font-weight: 800;
    padding: 0;
    text-decoration: none;
}

.btn-politica:hover {
    color: var(--calipso);
    text-decoration: underline;
}

/* Agrupa los enlaces del footer */
.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

/* En móviles, los enlaces del footer bajan en forma de lista */
@media (max-width: 767px) {
    .footer-sitio {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
    }
}

/* Estilo del modal de política de privacidad */
.modal-privacidad {
    border-radius: 24px;
    border: none;
    overflow: hidden;
}

.modal-privacidad .modal-header {
    background: var(--azul-profundo);
    color: var(--blanco);
    border-bottom: none;
}

.modal-privacidad .btn-close {
    filter: invert(1);
}

.modal-privacidad .modal-body {
    padding: 28px;
}

.modal-privacidad h3 {
    color: var(--azul-profundo);
    font-size: 1.2rem;
    margin-top: 24px;
    font-weight: 800;
}

.modal-privacidad p {
    color: var(--texto-suave);
    line-height: 1.7;
}

.texto-politica-final {
    background: rgba(0, 168, 150, 0.10);
    border-left: 4px solid var(--calipso);
    padding: 14px 16px;
    border-radius: 12px;
    margin-top: 24px;
}


/* Campo oculto anti-spam.
   No se muestra al usuario, pero ayuda a detectar bots que rellenan todos los campos. */
.campo-antispam {
    display: none !important;
}





/* RESPONSIVIDAD
   Ajustes para que la página se vea bien en tablets y celulares. */
   
@media (max-width: 991px) {
    .navbar .nav-link {
        margin-left: 0;
        padding: 12px 0;
    }

    .navbar .nav-link.active::after {
        left: 0;
        right: auto;
        width: 44px;
    }

    .hero-section {
        text-align: center;
        background-position: 24% center;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(6, 21, 46, 0.62), rgba(6, 21, 46, 0.86));
    }

    .hero-contenido {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-texto {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-section .d-flex {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 76px 0;
    }

    .logo-navbar {
        width: 46px;
        height: 46px;
    }

    .marca-texto {
        font-size: 0.95rem;
    }

    .hero-section {
        background-position: 18% center;
    }

    .hero-contenido,
    .formulario-card,
    .caja-destacada,
    .servicio-card {
        border-radius: 22px;
        padding: 24px;
    }
}
