/* ==========================================================================
   Escribanía Ovejero López — Rediseño 2026 (css2.css)
   Paleta: bordó institucional + crema + dorado. Transiciones estilo VyM.
   ========================================================================== */

:root {
    --brand:        #660033;
    --brand-dark:   #4a0125;
    --brand-darker: #2e0017;
    --gold:         #ad9355;
    --gold-dark:    #8a743f;
    --gold-soft:    #cfbc85;
    --gold-tint:    #f0e9d8;
    --cream:        #f7f4ed;
    --paper:        #fffdf9;
    --ink:          #2b2430;
    --muted:        #6f6675;
    --border-soft:  #e6dfd2;
    --wa:           #25d366;
    --nav-h:        76px;
    --shadow-sm: 0 2px 10px rgba(46, 0, 23, .07);
    --shadow-md: 0 10px 30px rgba(46, 0, 23, .12);
    --shadow-lg: 0 22px 55px rgba(46, 0, 23, .2);
}

@font-face {
    font-family: 'Aston Script';
    src: url('/includes/AstonScript.woff') format('woff');
    font-display: swap;
}

/* ---------- Base ---------- */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Raleway', system-ui, sans-serif;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    font-size: 1rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3, .font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--brand-dark);
    font-weight: 600;
}

.font-script {
    font-family: 'Aston Script', 'Brush Script MT', cursive;
    font-weight: 400;
}

a { color: var(--brand); transition: color .2s ease; }
a:hover { color: var(--brand-dark); }

::selection { background: var(--brand); color: #fff; }

/* ---------- Utilidades ---------- */

.section-pad  { padding: 4.5rem 0; }
.bg-cream     { background: var(--cream); }
.text-gold    { color: var(--gold) !important; }
.text-brand   { color: var(--brand) !important; }

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: .75rem;
}

.gold-rule {
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    border: 0;
    opacity: 1;
    margin: 0 0 1.4rem 0;
}
.gold-rule.mx-auto { margin-left: auto; margin-right: auto; }

.lead-soft {
    color: var(--muted);
    font-size: 1.06rem;
    font-weight: 400;
}

/* ---------- Animaciones de entrada (reveal on scroll) ---------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .wa-float::after { animation: none; }
    .hero .container { animation: none; }
}

/* ---------- Navbar ---------- */

.navbar-eol {
    background: rgba(255, 253, 249, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    min-height: var(--nav-h);
    padding-top: .4rem;
    padding-bottom: .4rem;
    transition: box-shadow .3s ease, background .3s ease;
}

.navbar-eol.scrolled {
    background: rgba(255, 253, 249, .98);
    box-shadow: var(--shadow-md);
}

.navbar-eol .navbar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.navbar-eol .navbar-brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.brand-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1.1;
}

.brand-sub {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
}

.navbar-eol .nav-link {
    font-weight: 500;
    font-size: .95rem;
    color: var(--ink);
    margin: 0 .35rem;
    padding: .55rem .35rem;
    position: relative;
}

.navbar-eol .nav-link::after {
    content: "";
    position: absolute;
    left: .35rem;
    right: .35rem;
    bottom: .2rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

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

.navbar-eol .nav-link.active { color: var(--brand); font-weight: 600; }

.btn-nav-cta {
    background: var(--brand);
    color: #fff !important;
    border-radius: 50rem;
    padding: .5rem 1.25rem !important;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s ease, transform .2s ease;
}
.btn-nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-nav-cta::after { display: none; }

.navbar-eol .navbar-toggler {
    border: 1px solid rgba(102, 0, 51, .35);
    border-radius: 8px;
    padding: .45rem .65rem;
}
.navbar-eol .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(102, 0, 51, .12); }
.navbar-eol .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(102, 0, 51, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Hero (home) ---------- */

.hero {
    position: relative;
    margin-top: var(--nav-h);
    min-height: calc(82vh - var(--nav-h));
    display: flex;
    align-items: center;
    background:
        linear-gradient(105deg, rgba(40, 0, 20, .92) 0%, rgba(64, 6, 36, .76) 50%, rgba(40, 0, 20, .45) 100%),
        url('/media/banner-2.jpg') center / cover no-repeat;
    color: #fff;
    padding: 4.5rem 0;
}

.hero .container {
    animation: heroFade .8s ease-out both;
}

@keyframes heroFade {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.hero .script-accent {
    font-family: 'Aston Script', 'Brush Script MT', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-soft);
    display: block;
    margin-bottom: .25rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.7rem);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 4px 24px rgba(0, 0, 0, .35);
}

.hero .hero-lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, .9);
    max-width: 600px;
    margin-bottom: 2.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

.hero-rule {
    width: 72px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin: 1.5rem 0;
}

.hero-badges {
    margin-top: 3.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    color: rgba(255, 255, 255, .92);
    font-size: .88rem;
    letter-spacing: .04em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.hero-badges i {
    color: var(--gold-soft);
    margin-right: .45rem;
}

/* ---------- Botones ---------- */

.btn-gold {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #fff;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .82rem;
    padding: .8rem 1.7rem;
    border-radius: 50rem;
    transition: all .25s ease;
}
.btn-gold:hover,
.btn-gold:focus {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(138, 116, 63, .35);
}

.btn-outline-light-eol {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .65);
    color: #fff;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .82rem;
    padding: .8rem 1.7rem;
    border-radius: 50rem;
    transition: all .25s ease;
}
.btn-outline-light-eol:hover,
.btn-outline-light-eol:focus {
    background: #fff;
    color: var(--brand-dark);
    transform: translateY(-2px);
}

.btn-brand {
    background: var(--brand);
    border: 1px solid var(--brand);
    color: #fff;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .82rem;
    padding: .8rem 1.9rem;
    border-radius: 50rem;
    transition: all .25s ease;
}
.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(102, 0, 51, .35);
}

.btn-light-cta {
    background: #fff;
    border: 1px solid #fff;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .82rem;
    padding: .8rem 1.7rem;
    border-radius: 50rem;
    transition: all .25s ease;
}
.btn-light-cta:hover {
    background: var(--brand-darker);
    border-color: var(--brand-darker);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Page header (páginas internas) ---------- */

.page-header {
    position: relative;
    margin-top: var(--nav-h);
    padding: 4.75rem 0 3.75rem;
    background:
        linear-gradient(160deg, rgba(40, 0, 20, .88) 0%, rgba(64, 6, 36, .7) 100%),
        url('/media/banner1.jpg') center 35% / cover no-repeat;
    color: #fff;
}

.page-header h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4vw, 2.9rem);
    font-weight: 700;
}

.page-header .lead-soft { color: rgba(255, 255, 255, .82); max-width: 640px; }

/* ---------- Tarjetas destacadas (index: cómo trabajamos) ---------- */

.svc-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.svc-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-soft);
}

.svc-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--gold-tint);
    border: 1px solid var(--gold-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    margin-bottom: 1.15rem;
    transition: background .28s ease, color .28s ease, transform .28s ease;
}

.svc-card:hover .svc-icon {
    background: var(--brand);
    color: #fff;
    transform: scale(1.06);
}

.svc-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .6rem;
}

.svc-card p {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 0;
}

/* ---------- Items de servicios (página servicios) ---------- */

.item-svc {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--gold-soft);
    border-radius: 12px;
    padding: 1.35rem 1.4rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.item-svc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-left-color: var(--brand);
}

.item-svc > i {
    flex-shrink: 0;
    font-size: 1.45rem;
    color: var(--gold-dark);
    line-height: 1.3;
    transition: color .25s ease;
}

.item-svc:hover > i { color: var(--brand); }

.item-svc h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .3rem;
}

.item-svc p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* ---------- Quiénes somos ---------- */

.framed-img img {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow-md);
    transition: transform .3s ease, box-shadow .3s ease;
}

.framed-img img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Credenciales (titular) ---------- */

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

.cred-list li {
    position: relative;
    padding: .55rem 0 .55rem 1.5rem;
    border-bottom: 1px dashed var(--border-soft);
    color: var(--ink);
    font-size: .96rem;
}

.cred-list li:last-child { border-bottom: 0; }

.cred-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* ---------- CTA band (tarjeta redondeada) ---------- */

.cta-band {
    background: linear-gradient(115deg, var(--brand-darker) 0%, var(--brand) 80%);
    color: #fff;
    border-radius: 20px;
    padding: 3.25rem 2.5rem;
    box-shadow: var(--shadow-md);
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
}

.cta-band p { color: rgba(255, 255, 255, .78); margin-bottom: 0; }

/* ---------- Contacto ---------- */

.contact-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 2.25rem;
}

.contact-info {
    background: linear-gradient(160deg, var(--brand-dark), var(--brand-darker));
    color: #fff;
    border-radius: 16px;
    padding: 2.25rem;
    height: 100%;
}

.contact-info h3 { color: #fff; font-weight: 700; }

.contact-info .info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.3rem;
}

.contact-info .info-item .bi {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(207, 188, 133, .14);
    border: 1px solid rgba(207, 188, 133, .35);
    color: var(--gold-soft);
    display: grid;
    place-items: center;
    font-size: 1.05rem;
}

.contact-info .info-item a { color: var(--gold-soft); text-decoration: none; }
.contact-info .info-item a:hover { color: #fff; text-decoration: underline; }

.contact-info .info-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.form-floating > .form-control {
    border-radius: 10px;
    border-color: var(--border-soft);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-floating > .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 .2rem rgba(102, 0, 51, .12);
}

.map-frame {
    border: 1px solid var(--border-soft);
    width: 100%;
    height: 330px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: block;
    filter: saturate(.85);
}

/* ---------- Footer ---------- */

.footer-eol {
    flex-shrink: 0;
    background: var(--brand-darker);
    color: rgba(255, 255, 255, .78);
    padding: 3.25rem 0 0;
    font-size: .93rem;
}

.footer-eol h5 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-eol a { color: var(--gold-soft); text-decoration: none; }
.footer-eol a:hover { color: #fff; }

.footer-eol .footer-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
}

.footer-eol .footer-brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.footer-eol ul { list-style: none; padding: 0; margin: 0; }
.footer-eol ul li { margin-bottom: .5rem; }

.footer-eol .bi { color: var(--gold); margin-right: .5rem; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2.25rem;
    padding: 1.1rem 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
}

/* ---------- WhatsApp flotante ---------- */

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.85rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}

.wa-float:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, .55);
}

.wa-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--wa);
    animation: wa-ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes wa-ping {
    0%   { transform: scale(1); opacity: .8; }
    75%, 100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .navbar-eol .navbar-collapse {
        background: var(--paper);
        padding: .75rem 1rem;
        margin-top: .5rem;
        border: 1px solid var(--border-soft);
        border-radius: 12px;
        box-shadow: var(--shadow-md);
    }
    .section-pad { padding: 3.25rem 0; }
    .hero { min-height: unset; padding: 4rem 0; }
    .hero-badges { gap: .75rem 1.5rem; }
    .contact-card, .contact-info { padding: 1.5rem; }
    .cta-band { padding: 2.25rem 1.5rem; }
}

@media (max-width: 575px) {
    .wa-float { width: 52px; height: 52px; font-size: 1.6rem; right: 16px; bottom: 16px; }
}
