/* ============================================
   Notaría Ulloa Concha - Estilos principales
   Base institucional premium, responsive y accesible
   ============================================ */

:root {
    --azul: #1f6fa8;
    --azul-hover: #165b8d;
    --azul-light: #e8f2f8;
    --marfil: #f7f3ec;
    --marfil-soft: #fbfaf7;
    --texto-body: #263541;
    --texto-heading: #132333;
    --texto-muted: #5d6b76;
    --gris-oscuro: #101a25;
    --gris-footer: #101a25;
    --bg-light: #f3f6f8;
    --border-light: #d8e1e7;
    --shadow-soft: 0 14px 34px rgba(16, 26, 37, 0.10);
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    color: var(--texto-body);
    overflow-x: hidden;
    background: var(--marfil-soft);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--texto-heading);
}

.text-accent {
    color: var(--azul) !important;
}

/* ---- Navbar ---- */
#mainNav {
    background: #1b2838;
    transition: all 0.3s ease;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#mainNav.scrolled {
    background: #1b2838;
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#mainNav .navbar-brand {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--texto-heading) !important;
    padding-top: 0;
    padding-bottom: 0;
}

#mainNav .navbar-brand img {
    display: block;
    width: auto;
    height: 60px;
    max-height: 60px;
    object-fit: contain;
    background: #1b2838;
    padding: 6px 10px;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

#mainNav .navbar-brand i {
    color: var(--azul);
}

#mainNav .nav-link {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px !important;
    transition: color 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #7fc4f6 !important;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: #7fc4f6;
    transform: scaleX(0);
    transition: transform 0.3s;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border-color: var(--azul) !important;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.dropdown-menu {
    background: #1b2838;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    padding: 0.5rem;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(127, 196, 246, 0.12);
    color: #7fc4f6;
}

.dropdown-item i {
    color: #7fc4f6;
}

/* ---- Hero ---- */
.hero-section {
    min-height: 92vh;
    background: #050709;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: url('../wp-content/uploads/2025/09/notaria-hero-poster.webp') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 7, 9, 0.72) 0%, rgba(5, 7, 9, 0.82) 55%, rgba(5, 7, 9, 0.92) 100%),
        radial-gradient(circle at 50% 35%, rgba(31, 111, 168, 0.22), transparent 52%);
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dceaf4;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.45rem, 5vw, 4.45rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
    line-height: 1.02;
}

.hero-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.12rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.84);
    letter-spacing: 0;
    line-height: 1.65;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: #cfe4f1;
}

.hero-text {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.78);
}

.z-1 {
    z-index: 2;
}

/* ---- Hero ticker ---- */
.hero-ticker-section {
    background: #101a25;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}

.hero-ticker-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: tickerScroll 30s linear infinite;
    padding: 26px 24px;
}

.hero-ticker-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 340px;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.hero-ticker-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: rgba(127, 196, 246, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-ticker-icon i {
    font-size: 1.45rem;
    color: #ffffff;
}

.hero-ticker-content .ticker-title {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.hero-ticker-content p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
    line-height: 1.55;
    font-size: 1rem;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ---- Section hub ---- */
.site-sections {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
    padding: 36px 0;
}

.section-hub {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
    gap: 28px;
    align-items: center;
}

.section-kicker {
    color: var(--azul-hover);
    font-family: 'Poppins', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-hub h2 {
    color: var(--texto-heading);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    margin: 0;
}

.section-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.section-hub-grid a {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--texto-heading);
    padding: 18px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(16, 26, 37, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.section-hub-grid a:hover,
.section-hub-grid a:focus-visible {
    border-color: #1b2838;
    box-shadow: var(--shadow-soft);
    color: var(--texto-heading);
    transform: translateY(-3px);
}

.section-hub-grid i {
    color: var(--azul-hover);
    font-size: 1.4rem;
}

.section-hub-grid span {
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
}

.page-shell {
    background: var(--marfil-soft);
}

.page-intro {
    position: relative;
    overflow: hidden;
    padding: 148px 0 62px;
    background:
        linear-gradient(135deg, rgba(16, 26, 37, .94), rgba(27, 40, 56, .9)),
        radial-gradient(circle at 82% 18%, rgba(31, 111, 168, .34), transparent 34%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.page-intro::after {
    content: "";
    position: absolute;
    inset: auto -8% -38% auto;
    width: min(520px, 64vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.page-intro .container {
    position: relative;
    z-index: 1;
}

.page-intro .tramite-back {
    color: rgba(255, 255, 255, .72);
    border-color: rgba(255, 255, 255, .22);
}

.page-intro .tramite-back:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .52);
}

.page-intro .section-kicker {
    color: #9fd1f3;
}

.page-intro h1 {
    color: #fff;
    font-size: clamp(2.15rem, 5vw, 3.9rem);
    line-height: 1.05;
    margin-bottom: 16px;
    max-width: 820px;
}

.page-intro p:not(.section-kicker) {
    color: rgba(255, 255, 255, .78);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0;
}

.home-more-section {
    background: #eef3f6;
}

.section-layout {
    display: grid;
    grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: start;
}

.section-layout-copy {
    position: sticky;
    top: 112px;
}

.section-layout-copy .section-title {
    text-align: left;
}

.section-layout-copy .section-divider {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.section-layout-copy .section-subtitle {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.section-list {
    display: grid;
    gap: 12px;
}

.section-row {
    display: grid;
    grid-template-columns: 44px minmax(150px, .72fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 92px;
    padding: 20px 22px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--texto-body);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(16, 26, 37, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.section-row:hover,
.section-row:focus-visible {
    color: var(--texto-body);
    border-color: #1b2838;
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.section-row i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef6fb;
    color: var(--azul-hover);
    font-size: 1.15rem;
}

.section-row strong {
    color: var(--texto-heading);
    font-family: 'Roboto', sans-serif;
    font-size: 1.08rem;
}

.section-row span {
    color: var(--texto-muted);
    line-height: 1.5;
}

.section-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 24px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--texto-body);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(16, 26, 37, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.section-card:hover,
.section-card:focus-visible {
    color: var(--texto-body);
    border-color: #1b2838;
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.section-card i {
    color: var(--azul-hover);
    font-size: 1.5rem;
}

.section-card strong {
    color: var(--texto-heading);
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
}

.section-card span {
    color: var(--texto-muted);
    line-height: 1.55;
}

/* ---- Hero badges ---- */
.hero-badges {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.2;
}

/* ---- Home turnos ---- */
.home-turnos-section {
    background: #f4f8fc;
    padding: 42px 0;
    border-bottom: 1px solid var(--border-light);
}

.home-turnos-panel {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
    padding: clamp(24px, 4vw, 38px);
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(16, 26, 37, .07);
}

.home-turnos-copy h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.65rem);
    line-height: 1.08;
    margin-bottom: 14px;
}

.home-turnos-copy p:not(.section-kicker) {
    color: var(--texto-muted);
    line-height: 1.65;
    max-width: 54ch;
    margin-bottom: 0;
}

.home-turnos-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.turno-card-home {
    display: block;
    color: var(--texto-body);
    text-decoration: none;
}

.turno-card-home:hover,
.turno-card-home:focus-visible {
    color: var(--texto-body);
}

/* ---- Buttons ---- */
.btn-accent {
    background: transparent;
    color: #fff;
    border: 2px solid #d4e8f3;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    padding: 12px 35px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accent:hover {
    background: #d4e8f3;
    color: #101a25;
    border-color: #d4e8f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 232, 243, 0.26);
}

.hero-section .btn-accent:hover {
    color: #101a25;
}

.btn-accent:focus-visible,
.btn-accent-solid:focus-visible,
.btn-accent-sm:focus-visible,
.btn-top:focus-visible,
.floating-contact-btn:focus-visible {
    outline: 3px solid rgba(127, 196, 246, 0.55);
    outline-offset: 3px;
}

.btn-accent-solid {
    background: #f7f3ec;
    color: #101a25;
    border: 2px solid #f7f3ec;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    padding: 12px 35px;
    transition: all 0.3s ease;
}

.btn-accent-solid:hover {
    background: #d4e8f3;
    border-color: #d4e8f3;
    color: #101a25;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 232, 243, 0.28);
}

.btn-accent-sm {
    background: #101a25;
    color: #fff;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
    padding: 8px 22px;
    transition: all 0.3s ease;
}

.btn-accent-sm:hover {
    background: var(--azul);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 152, 238, 0.3);
}

.btn-disabled,
.btn-disabled:hover {
    background: #eef3f6;
    color: #5d6b76;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* ---- Procedures ---- */
.procedure-section {
    background: var(--marfil-soft);
}

.procedure-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 28px 24px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #ffffff;
    color: var(--texto-body);
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(16, 26, 37, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.procedure-card:hover,
.procedure-card:focus-visible {
    transform: translateY(-4px);
    border-color: #1b2838;
    box-shadow: var(--shadow-soft);
    color: var(--texto-body);
}

.procedure-card strong {
    color: var(--texto-heading);
    font-family: 'Roboto', sans-serif;
    font-size: 1.12rem;
}

.procedure-card span:not(.procedure-icon) {
    color: var(--texto-muted);
    line-height: 1.62;
}

.procedure-card em {
    margin-top: auto;
    color: var(--azul-hover);
    font-family: 'Poppins', sans-serif;
    font-size: .82rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.procedure-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #101a25;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.procedure-icon i {
    font-size: 1.35rem;
}

/* ---- Quick help ---- */
.quick-help-section {
    background: var(--marfil-soft);
    padding: 56px 0 24px;
}

.quick-help-card {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 28px 22px;
    box-shadow: var(--shadow-soft);
}

.quick-help-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #101a25;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.quick-help-icon i {
    font-size: 1.5rem;
}

.quick-help-card .card-heading {
    color: #1b2838;
    margin-bottom: 10px;
}

.quick-help-card p {
    color: var(--texto-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ---- Section Common ---- */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.35rem;
    font-weight: 700;
    color: #1b2838;
    margin-bottom: 10px;
    line-height: 1.15;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--azul);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--texto-muted);
    font-size: 1.02rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
}

.bg-section-dark {
    background: var(--gris-oscuro);
}

/* Fondo servicios más oscuro para destacar tarjetas blancas */
#servicios.bg-light {
    background: #eef3f6 !important;
}

/* ---- Service Cards ---- */
.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 22px rgba(16, 26, 37, 0.06);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: var(--azul);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--azul-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.service-icon i {
    font-size: 1.6rem;
    color: #1b2838;
}

.service-card:hover .service-icon {
    background: #1b2838;
}

.service-card:hover .service-icon i {
    color: #fff;
}

.service-card .card-heading {
    font-family: 'Roboto', sans-serif;
    color: var(--texto-heading);
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--texto-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---- Index Cards ---- */
.index-card {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 35px 25px;
    transition: all 0.3s ease;
    border: 1px solid #d9e2ec;
    cursor: default;
    position: relative;
    box-shadow: 0 3px 12px rgba(44, 62, 80, 0.06);
}

.index-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1b2838;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.index-card:hover {
    border-color: #1b2838;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(27, 40, 56, 0.16);
}

.index-card:hover::before {
    opacity: 1;
}

.index-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--azul-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.index-icon i {
    font-size: 2rem;
    color: #1b2838;
}

.index-card .card-heading {
    font-family: 'Roboto', sans-serif;
    color: var(--texto-heading);
    font-weight: 600;
}

.index-card p {
    color: var(--texto-muted);
    font-size: 0.9rem;
}

/* ---- Nuestro Notario ---- */
.notario-section {
    background:
        linear-gradient(rgba(11, 18, 30, 0.88), rgba(11, 18, 30, 0.9)),
        url('../wp-content/uploads/2025/09/notaria-ulloa-logo-current.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.notario-panel {
    background: rgba(9, 15, 26, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 40px 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.notario-name {
    color: #ffffff !important;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.notario-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.notario-icon {
    width: 54px;
    min-width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(127, 196, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notario-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.notario-text h4 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.notario-text p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.notario-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
    margin: 2rem 0;
}

/* ---- About / Stats ---- */
.about-content h3 {
    color: #7fc4f6 !important;
}

.about-content p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.about-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(40, 152, 238, 0.2);
    border-radius: 0;
    padding: 30px 15px;
    transition: all 0.3s;
}

.about-stat:hover {
    background: rgba(40, 152, 238, 0.08);
    border-color: var(--azul);
    transform: translateY(-3px);
}

.stat-number {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--azul);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- FAQ Accordion ---- */
.accordion-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--texto-heading);
    padding: 18px 20px;
    background: #fff;
}

.accordion-button:not(.collapsed) {
    background: var(--azul-light);
    color: var(--texto-heading);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 152, 238, 0.2);
    border-color: var(--azul);
}

.accordion-button::after {
    filter: none;
}

.accordion-body {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--texto-muted);
}

/* ---- Info Cards ---- */
.info-card {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 30px 20px;
    border: 1px solid #d9e2ec;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 3px 12px rgba(44, 62, 80, 0.06);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1b2838;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(27, 40, 56, 0.16);
    border-color: #1b2838;
}

.info-card:hover::before {
    opacity: 1;
}

.info-icon {
    font-size: 2rem;
    color: #1b2838;
    margin-bottom: 15px;
}

.info-card .card-heading {
    font-family: 'Roboto', sans-serif;
    color: var(--texto-heading);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.88rem;
    color: var(--texto-muted);
}

.info-card a {
    color: #1b5f93;
    font-weight: 700;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.info-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.info-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.btn-aranceles {
    background: transparent !important;
    color: #1a7fd4 !important;
    border: 2px solid #1a7fd4 !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-radius: 50px !important;
    padding: 8px 22px !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
}

.btn-aranceles:hover,
.info-card-link:hover .btn-aranceles {
    background: #1a7fd4 !important;
    border-color: #1a7fd4 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(40, 152, 238, 0.35) !important;
}

.map-container {
    border: 2px solid var(--border-light);
}

.map-link a {
    color: var(--azul-hover);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
}

.map-link a:hover {
    color: var(--texto-heading);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---- Link Cards (Links de interés) ---- */
.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
    border: 1px solid #d9e2ec;
    padding: 16px 18px;
    text-decoration: none;
    color: var(--texto-heading);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    box-shadow: 0 3px 10px rgba(44, 62, 80, 0.05);
    border-radius: 8px;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: #1b2838;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: #1b2838;
    box-shadow: 0 10px 24px rgba(27, 40, 56, 0.16);
    color: var(--texto-heading);
}

.link-card:hover::before {
    opacity: 1;
}

.link-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.link-icon i {
    color: #1b2838;
    font-size: 1.45rem;
}

.link-body {
    flex: 1;
    min-width: 0;
}

.link-body .card-heading {
    font-family: 'Roboto', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--texto-heading);
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.link-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.78rem;
    color: var(--texto-muted);
    word-break: break-all;
}

.link-arrow {
    flex-shrink: 0;
    color: var(--azul);
    font-size: 0.95rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.link-card:hover .link-arrow {
    opacity: 1;
}

/* ---- Trámite pages ---- */
.tramite-page {
    padding-top: 150px;
    min-height: 100vh;
}

.tramite-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--azul-hover);
    font-family: 'Poppins', sans-serif;
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.tramite-back:hover {
    color: var(--texto-heading);
}

.tramite-panel {
    padding: 42px;
}

.tramite-panel h1 {
    text-align: left;
    margin-bottom: 12px;
}

.tramite-panel h2 {
    color: var(--texto-heading);
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 14px;
}

.tramite-panel .lead {
    color: var(--texto-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.tramite-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #101a25;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.tramite-icon i {
    font-size: 1.55rem;
}

.tramite-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tramite-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--texto-body);
    line-height: 1.6;
}

.tramite-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7em;
    width: 12px;
    height: 2px;
    background: var(--azul);
}

.tramite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

/* ---- Contact Form ---- */
#contacto .form-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
}

#contacto .form-control,
#contacto .form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 8px;
    padding: 12px 15px;
}

#contacto .form-control:focus,
#contacto .form-select:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--azul);
    box-shadow: 0 0 0 0.2rem rgba(40, 152, 238, 0.2);
    color: #fff;
}

#contacto .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Evitar que Chrome autofill pinte los inputs de blanco/beige */
#contacto .form-control:-webkit-autofill,
#contacto .form-control:-webkit-autofill:hover,
#contacto .form-control:-webkit-autofill:focus,
#contacto .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--gris-oscuro) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    transition: background-color 9999s ease-in-out 0s;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

#contacto .form-select option {
    background: var(--gris-oscuro);
    color: #fff;
}

/* Validación visual sobre fondo oscuro */
#contacto .form-control.is-valid,
#contacto .form-select.is-valid,
#contacto .was-validated .form-control:valid,
#contacto .was-validated .form-select:valid {
    border-color: #4ade80;
    background-image: none;
    padding-right: 15px;
}

#contacto .form-control.is-invalid,
#contacto .form-select.is-invalid,
#contacto .was-validated .form-control:invalid,
#contacto .was-validated .form-select:invalid {
    border-color: #f87171;
    background-image: none;
    padding-right: 15px;
}

#contacto .form-control.is-valid:focus,
#contacto .was-validated .form-control:valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(74, 222, 128, 0.2);
}

#contacto .form-control.is-invalid:focus,
#contacto .was-validated .form-control:invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(248, 113, 113, 0.2);
}

/* Asterisco campos obligatorios */
#contacto .req {
    color: #f87171;
    font-weight: 700;
    margin-left: 2px;
}

#contacto .form-required-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1rem !important;
}

/* Mensajes de error inline (override Bootstrap para fondo oscuro) */
#contacto .invalid-feedback {
    color: #fca5a5;
    font-size: 0.82rem;
    margin-top: 6px;
    font-weight: 500;
}

#contacto .invalid-feedback::before {
    content: "\F33A"; /* bi-exclamation-circle-fill */
    font-family: "bootstrap-icons";
    margin-right: 6px;
}

/* ---- FAQ ---- */
.faq-section {
    background: #eef4f9 !important;
}

.faq-info-card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    padding: 30px 26px;
    box-shadow: 0 3px 12px rgba(44, 62, 80, 0.05);
    border-radius: 8px;
}

.faq-info-card .card-heading {
    color: #1b2838;
    margin-bottom: 18px;
}

.faq-list {
    padding-left: 1.15rem;
    color: var(--texto-body);
}

.faq-list li {
    margin-bottom: 14px;
    line-height: 1.6;
}

.faq-accordion .accordion-item {
    border-color: #d9e2ec;
}

.faq-accordion .accordion-button {
    font-weight: 600;
}

/* ---- Contact CTA ---- */
.contact-cta-section {
    background: #f4f8fc;
    padding: 0 0 20px;
}

.contact-cta-card {
    background: #1b2838;
    color: #fff;
    padding: 28px 24px;
    box-shadow: 0 10px 24px rgba(27, 40, 56, 0.16);
    border-radius: 8px;
}

.contact-cta-card h2 {
    color: #fff;
    margin-bottom: 10px;
}

.contact-cta-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
}

/* ---- Floating contact ---- */
.floating-contact-btn {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1b2838;
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(27, 40, 56, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
}

.floating-contact-btn:hover {
    background: #2898ee;
    color: #fff;
    transform: translateY(-2px);
}

.floating-contact-btn i {
    font-size: 1rem;
}

@media (min-width: 992px) {
    .floating-contact-btn {
        display: none;
    }
}

/* ---- Footer ---- */
.footer-section {
    background: var(--gris-footer);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.footer-divider {
    width: 100%;
    max-width: 720px;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
}

.footer-social-link {
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-social-link:hover {
    color: #7fc4f6;
    transform: translateY(-2px);
}

.footer-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.footer-link:hover {
    color: #7fc4f6;
    text-decoration: none;
}

/* ---- Back to Top Button ---- */
.btn-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--azul);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-top.visible {
    opacity: 1;
    visibility: visible;
}

.btn-top:hover {
    background: var(--azul-hover);
    transform: translateY(-3px);
}

/* ---- Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .home-turnos-panel {
        grid-template-columns: 1fr;
    }

    .home-turnos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-layout {
        grid-template-columns: 1fr;
    }

    .section-layout-copy {
        position: static;
    }

    .section-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .section-row span {
        grid-column: 2;
    }

    .section-hub {
        grid-template-columns: 1fr;
    }

    .section-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #mainNav .navbar-brand img {
        height: 52px;
        max-height: 52px;
    }

    .hero-title {
        font-size: 2.45rem;
    }

    .notario-name {
        font-size: 2rem;
    }

    .notario-text h4 {
        font-size: 1.55rem;
    }

    .hero-ticker-track {
        animation-duration: 38s;
    }

    .hero-ticker-item {
        min-width: 300px;
        max-width: 340px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.95rem;
    }

    #navbarNav {
        background: #1b2838;
        border-radius: 10px;
        padding: 15px;
        margin-top: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    }
}

@media (max-width: 575px) {
    .home-turnos-section {
        padding: 30px 0;
    }

    .home-turnos-panel {
        padding: 22px;
    }

    .home-turnos-grid {
        gap: 10px;
    }

    .turno-card-home {
        padding: 18px 8px 15px;
    }

    .turno-card-home .turno-day {
        font-size: 2rem;
    }

    .page-intro {
        padding-top: 122px;
        padding-bottom: 46px;
    }

    .site-sections {
        padding: 28px 0;
    }

    .section-hub-grid {
        grid-template-columns: 1fr;
    }

    .section-hub-grid a {
        min-height: 82px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

    .section-row {
        align-items: start;
        gap: 12px;
        padding: 18px;
    }

    .hero-video {
        display: none;
    }

    .hero-section {
        min-height: 88vh;
        padding-top: 96px;
        padding-bottom: 38px;
    }

    .hero-title {
        font-size: 2.15rem;
    }

    .hero-text {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .floating-contact-btn {
        left: 14px;
        right: auto;
        bottom: 16px;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
    }

    .floating-contact-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .btn-top {
        right: 14px;
        bottom: 16px;
        width: 48px;
        height: 48px;
    }

    .hero-badge {
        width: 100%;
        justify-content: center;
        border-radius: 14px;
    }

    .quick-help-section {
        padding-top: 36px;
    }

    .faq-info-card {
        padding: 24px 20px;
    }

    .notario-panel {
        padding: 28px 20px;
    }

    .notario-name {
        font-size: 1.8rem;
    }

    .notario-item {
        gap: 14px;
    }

    .notario-icon {
        width: 46px;
        min-width: 46px;
        height: 46px;
    }

    .notario-text h4 {
        font-size: 1.35rem;
    }

    .notario-text p {
        font-size: 0.98rem;
    }

    .hero-ticker-track {
        padding: 18px 16px;
        gap: 16px;
        animation-duration: 44s;
    }

    .hero-ticker-item {
        min-width: 270px;
        padding: 18px;
    }

    .hero-ticker-content .ticker-title {
        font-size: 1.15rem;
    }

    .hero-ticker-content p {
        font-size: 0.92rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.96rem;
    }

    .tramite-page {
        padding-top: 120px;
    }

    .tramite-panel {
        padding: 28px 20px;
    }

    .tramite-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-ticker-track {
        animation: none;
        width: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .fade-up,
    .service-card,
    .index-card,
    .info-card,
    .link-card,
    .floating-contact-btn,
    .btn-top {
        transition: none !important;
    }
}

/* Turnos */
.turno-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0f7fc 100%);
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    padding: 22px 10px 18px;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}
.turno-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b2838, #2898ee);
}
.turno-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(40, 152, 238, 0.18);
    border-color: #2898ee;
}
.turno-card .turno-day {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: #2898ee;
    line-height: 1;
    margin-bottom: 4px;
}
.turno-card .turno-month {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.turno-card .turno-year {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 2px;
}
