﻿/* =======================
   VARIABLES
======================= */
:root {
    --premium-blue: #17365d;
    --premium-blue-2: #1d3557;
    --premium-gold: #8b6f47;
    --premium-text: #1f2937;
    --premium-soft: #6b7280;
    --premium-border: rgba(15, 23, 42, 0.08);
    --premium-shadow: 0 12px 34px rgba(15, 23, 42, 0.10);
    --premium-shadow-soft: 0 8px 22px rgba(15, 23, 42, 0.06);
    --premium-bg: rgba(255,255,255,0.94);
}

/* =======================
   BASE
======================= */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #222;
    background-color: #f8f9fa;
    font-size: 20px;
    margin: 0;
}

/* =======================
   HEADER PREMIUM
======================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--premium-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--premium-border);
    transition: all 0.28s ease;
}

    .site-header.scrolled {
        box-shadow: var(--premium-shadow);
    }

.header-shell {
    width: min(94%, 1440px);
    margin: 0 auto;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-header.scrolled .header-shell {
    min-height: 74px;
}

/* =======================
   BRAND
======================= */
.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-mark {
    width: 10px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--premium-gold), var(--premium-blue));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title-main {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--premium-blue);
}

.brand-subtitle-main {
    font-size: 0.9rem;
    color: var(--premium-soft);
}

/*Drop*/


.dropdown-premium {
    position: relative;
}

/* Menú oculto correctamente */
.dropdown-menu-premium {
    position: absolute;
    top: calc(100% + 8px); /* separación sin empujar */
    left: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    padding: 8px 0;
    min-width: 180px;
    display: none;
    z-index: 9999;
    list-style: none;
    margin: 0;
}

/* Mostrar con clase (NO hover) */
.dropdown-premium.active .dropdown-menu-premium {
    display: block;
}

.dropdown-item-premium i {
    margin-right: 8px;
    color: #0d6efd;
    width: 18px;
    text-align: center;
}

/* Items */
.dropdown-item-premium {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .dropdown-item-premium:hover {
        background: #f3f4f6;
        color: #0d6efd;
    }


.main-nav {
    margin-left: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.nav-link-premium.active {
    color: #8b6f47 !important;
    position: relative;
}

    .nav-link-premium.active::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2px;
        background: #8b6f47;
        border-radius: 2px;
    }


.nav-link-premium:hover {
    color: var(--premium-gold);
    color: #8b6f47 !important;
}

    .nav-link-premium:hover::after,
    .nav-link-premium.active::after {
        transform: scaleX(1);
    }

.nav-link-premium.active {
    font-weight: 600;
    color: #8b6f47 !important;
}

/* ICONOS NAV */
.nav-link-premium i {
    margin-right: 6px;
    font-size: 14px;
}

/* ICONOS DROPDOWN */
.dropdown-item-premium i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
    color: #0d6efd;
}

.nav-link-premium {
    display: flex;
    align-items: center;
    color: #1d3557 !important;
    text-decoration: none;
}


/* =======================
   HERO STRIP
======================= */
.hero-brand-strip {
    margin-top: 88px;
    min-height: 140px;
    background: linear-gradient(115deg, rgba(255,255,255,0.7), rgba(90,132,211,0.9)), url('../Imagenes/fondologo.png');
    background-size: cover;
    background-position: center;
}

.hero-brand-shell {
    width: min(94%, 1440px);
    margin: 0 auto;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-notario-logo {
    max-width: 420px;
    width: 100%;
}

.hero-brand-right {
    text-align: right;
}

.hero-brand-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.hero-brand-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}



/* =======================
   BOTONES
======================= */
.btn-notaria {
    background-color: var(--premium-gold);
    border: none;
    color: #fff;
}

    .btn-notaria:hover {
        background-color: #735b3b;
    }

/* =======================
   CARDS
======================= */
.card-service {
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

    .card-service:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    }

/* =======================
   FOOTER
======================= */

/* =======================
   FOOTER MEJORADO
======================= */

.site-footer {
    position: relative;
    background: linear-gradient(135deg, #17365d 0%, #1d3557 55%, #12263f 100%);
    color: #ffffff;
    border-top: 4px solid var(--premium-gold);
    overflow: hidden;
}

    .site-footer::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 35%);
        pointer-events: none;
    }

.footer-shell {
    position: relative;
    z-index: 1;
}

.finalprincipal {
    width: 100%;
    display: block;
}

/* Marca / título */
.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-brand-line {
    width: 6px;
    min-width: 6px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(180deg, #b49363 0%, #e8d4b0 100%);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.footer-brand h5 {
    margin: 0 0 8px 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-brand p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    max-width: 580px;
}

/* Lista de datos */
.footer-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

    .footer-item:hover {
        transform: translateY(-2px);
        background: rgba(255,255,255,0.11);
        box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    }

.footer-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

/* Íconos SVG guardados localmente */

.footer-icon-direccion {
    background-image: url('/Imagenes/iconos/mapa.png');
}

.footer-icon-telefono {
    background-image: url('/Imagenes/iconos/llamada.png');
}

.footer-icon-contacto {
    background-image: url('/Imagenes/iconos/contacto.png');
}

.footer-icon-sugerencia {
    background-image: url('/Imagenes/iconos/sugerencia.png');
}

.footer-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
}

    .footer-text strong {
        font-weight: 700;
    }

/* Link contacto */
.site-footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer-link-contacto {
    display: inline-block;
    font-weight: 600;
    color: #ffffff;
    position: relative;
    transition: color 0.25s ease;
}

    .footer-link-contacto::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, #b49363, #e8d4b0);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }

    .footer-link-contacto:hover {
        color: #f7e8cc;
    }

        .footer-link-contacto:hover::after {
            transform: scaleX(1);
        }

.footer-link-block {
    text-decoration: none;
    color: inherit;
    display: flex;
}

    .footer-link-block:hover {
        color: #ffffff;
    }

        .footer-link-block:hover .footer-text {
            color: #ffffff;
        }

.footer-btn-contacto {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #b49363, #e8d4b0);
    color: #1d3557;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .footer-btn-contacto:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 18px rgba(0,0,0,0.2);
    }

.footer-icon-mini {
    width: 22px;
    height: 22px;
    display: inline-block;
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}


.footer-link-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

    .footer-link-icon:hover {
        transform: scale(1.15);
    }

/* Tarjeta horarios */
.footer-card {
    height: 100%;
    padding: 28px 24px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: 0 16px 34px rgba(0,0,0,0.14);
    backdrop-filter: blur(8px);
}

    .footer-card h5 {
        margin: 0 0 20px 0;
        font-size: 1.3rem;
        font-weight: 700;
        color: #ffffff;
    }

.footer-schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

    .footer-schedule-row:last-of-type {
        border-bottom: none;
    }

.footer-schedule-label {
    font-weight: 600;
    color: rgba(255,255,255,0.88);
}

.footer-schedule-value {
    font-weight: 700;
    color: #ffffff;
    text-align: right;
}

.footer-divider {
    height: 1px;
    margin: 18px 0 16px 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}

.footer-note {
    font-size: 0.96rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
}


.icono-seccion {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto 15px auto;
}

.icono-contenedor {
    text-align: center;
    margin-bottom: 40px;
}

.service-img2 {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 8px;
    flex-shrink: 0;
}

.final {
    margin-left: 14px;
    display: flex;
    align-items: center;
    min-height: 56px;
}

    .final h5 {
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.4;
    }

.finalprincipal {
    width: 100%;
    display: block;
}

.franja-institucional {
    width: 100%;
    min-height: 120px;
    margin-top: 88px;
    background-image: url('/Imagenes/fondologo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.franja-shell {
    width: min(94%, 1440px);
    margin: 0 auto;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.franja-logo {
    display: flex;
    align-items: center;
}

.franja-logo-img {
    max-width: 420px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.franja-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.franja-titulo {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    line-height: 1.1;
}

.franja-subtitulo {
    margin-top: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.18);
}


.global-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

    .global-loader-overlay.activo {
        display: flex !important;
    }

.global-loader-box {
    min-width: 280px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 24px 24px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    animation: loaderEntrada 0.2s ease-out;
    text-align: center;
}

.global-loader-spinner-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.global-loader-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #8b6f47;
    border-radius: 50%;
    animation: giroLoader 0.85s linear infinite;
    box-sizing: border-box;
    display: block;
}

.global-loader-texto {
    font-size: 15px;
    color: #1d3557;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    margin: 0;
}

@keyframes giroLoader {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderEntrada {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* =======================
   RESPONSIVE
======================= */


/* Responsive */
@media (max-width: 991px) {
    .footer-brand {
        gap: 12px;
    }

    .footer-brand-line {
        height: 56px;
    }

    .footer-card {
        margin-top: 6px;
    }

    .footer-schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .footer-schedule-value {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .footer-item {
        align-items: flex-start;
    }

    .footer-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        background-size: 20px;
    }

    .footer-brand h5 {
        font-size: 1.2rem;
    }

    .footer-brand p,
    .footer-text,
    .footer-note {
        font-size: 0.95rem;
    }
}


@media (max-width: 991px) {
    .nav-list {
        flex-direction: column;
        gap: 10px;
    }

    .hero-brand-shell {
        flex-direction: column;
        text-align: center;
    }

    .hero-brand-right {
        text-align: center;
    }
}


@media (max-width: 991px) {
    .franja-institucional {
        margin-top: 76px;
        padding: 18px 0;
    }

    .franja-shell {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-height: auto;
    }

    .franja-logo-img {
        max-width: 320px;
    }

    .franja-texto {
        align-items: flex-start;
        text-align: left;
    }

    .franja-titulo {
        font-size: 1.35rem;
    }

    .franja-subtitulo {
        font-size: 0.95rem;
    }
}

/* =======================
   AJUSTES RESPONSIVE MASTER
======================= */
@media (max-width: 991px) {
    .brand-text {
        display: flex;
    }

    .brand-title-main {
        font-size: 1.1rem;
        line-height: 1.1;
    }

    .brand-subtitle-main {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .header-shell {
        gap: 10px;
    }

    .site-header.scrolled .header-shell {
        min-height: 62px;
    }

    .brand-mark {
        width: 8px;
        height: 34px;
    }

    .main-nav {
        width: 100%;
    }

    .nav-list {
        flex-direction: column;
        gap: 10px;
        padding-top: 12px;
    }

    /* franja institucional más compacta */
    .franja-institucional {
        margin-top: 68px;
        min-height: auto;
        padding: 12px 0;
    }

    .franja-shell {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-height: auto;
        gap: 10px;
    }

    .franja-logo-img {
        max-width: 260px;
        width: 100%;
        height: auto;
    }

    .franja-texto {
        align-items: flex-start;
        text-align: left;
    }

    .franja-titulo {
        font-size: 1.05rem;
        line-height: 1.15;
    }

    .franja-subtitulo {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 576px) {
    .header-shell {
        min-height: 62px;
    }

    .site-header.scrolled .header-shell {
        min-height: 58px;
    }
    .brand-title-main {
        font-size: 0.95rem;
    }

    .brand-subtitle-main {
        font-size: 0.65rem;
    }

    .brand-mark {
        width: 7px;
        height: 30px;
    }

    .franja-institucional {
        margin-top: 62px;
        padding: 10px 0;
    }

    .franja-logo-img {
        max-width: 220px;
    }

    .franja-titulo {
        font-size: 0.95rem;
    }

    .franja-subtitulo {
        font-size: 0.8rem;
    }
}

/* BOTON MENU MOBILE */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(23, 54, 93, 0.25);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-width: 44px;
    min-height: 40px;
}

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--premium-blue);
        border-radius: 2px;
    }

@media (max-width: 991px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        width: 100%;
    }

        .main-nav.collapse {
            display: none !important;
            width: 100%;
        }

            .main-nav.collapse.show {
                display: block !important;
                margin-top: 10px;
                background: #ffffff;
                border-radius: 12px;
                padding: 12px 14px;
                box-shadow: 0 10px 24px rgba(0,0,0,0.10);
            }

    .nav-list {
        flex-direction: column;
        gap: 10px;
        padding-top: 0;
    }

    .nav-link-premium {
        padding: 8px 0;
    }
}
