/* ── TOKENS ─────────────────────────────────────────── */
:root {
    --orange:       #F26419;
    --orange-light: #F7934C;
    --ink:          #111111;
    --mid:          #444444;
    --muted:        #888888;
    --cream:        #EDE2CC;
    --cream-rgb:    237, 226, 204;
    --border:       #D4C29C;
    --serif:        'Lora', Georgia, serif;
    --sans:         'Inter', system-ui, sans-serif;
    --ease:         cubic-bezier(.25,.8,.25,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); overflow-x: hidden; }

/* ── NAVBAR ─────────────────────────────────────────── */
#mainNav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 5vw;
    background: var(--cream);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
#mainNav.scrolled {
    border-color: var(--border);
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.nav-links {
    display: flex; gap: 2.4rem; list-style: none; align-items: center;
}
.nav-links a {
    font-size: 1.05rem; font-weight: 500; color: var(--mid);
    text-decoration: none; letter-spacing: .01em;
    transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
    background: var(--orange) !important;
    color: var(--cream) !important;
    padding: .75rem 1.7rem !important;
    border-radius: 4px;
    font-weight: 600 !important;
    white-space: nowrap;
    transition: background .2s !important;
}
.nav-cta:hover { background: var(--orange-light) !important; }
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); }

/* ── BOTONES ─────────────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--orange); color: var(--cream);
    padding: .8rem 2rem; font-weight: 600; font-size: .95rem;
    text-decoration: none; border-radius: 4px;
    border: 2px solid var(--orange);
    transition: background .2s, color .2s;
}
.btn-primary:hover { background: var(--orange-light); border-color: var(--orange-light); }
.btn-ghost {
    display: inline-block;
    background: transparent; color: var(--cream);
    padding: .8rem 1.5rem; font-weight: 500; font-size: .95rem;
    text-decoration: none; border-radius: 4px;
    border: 2px solid rgba(var(--cream-rgb),.3);
    transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(var(--cream-rgb),.06); }

/* ── TEXTURA DE TELA (reutilizable) ───────────────────── */
.hero, .section-dark, footer, .contact-hero {
    position: relative; overflow: hidden;
}
.hero::before, .section-dark::before, footer::before, .contact-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, transparent 1px, transparent 4px);
    background-size: 6px 6px;
    pointer-events: none;
}
.hero::after, .section-dark::after, footer::after, .contact-hero::after {
    content: '';
    position: absolute; inset: 0;
    opacity: .5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    pointer-events: none;
}

/* .contact-section: SIN overflow:hidden a propósito, para no cortar
   la tarjeta que sube con margin negativo (.contact-wrap) */
.contact-section {
    position: relative;
}
.contact-section::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, transparent 1px, transparent 4px);
    background-size: 6px 6px;
    pointer-events: none;
}
.contact-section::after {
    content: '';
    position: absolute; inset: 0;
    opacity: .5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    pointer-events: none;
}

.section-light, .section-cta, #mainNav {
    position: relative;
}
.section-light::before, .section-cta::before, #mainNav::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0px, rgba(0,0,0,.02) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,.015) 0px, rgba(0,0,0,.015) 1px, transparent 1px, transparent 4px);
    background-size: 6px 6px;
    pointer-events: none;
}
.section-light::after, .section-cta::after, #mainNav::after {
    content: '';
    position: absolute; inset: 0;
    opacity: .3;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    pointer-events: none;
}
.nav-brand, .nav-links, .hamburger {
    position: relative;
    z-index: 1;
}

.nav-brand img {
    filter: drop-shadow(0 4px 10px rgba(17, 17, 17, .45)) drop-shadow(0 1px 3px rgba(17, 17, 17, .3));
    transition: filter .2s ease;
}
.footer-brand img {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}
/* ── HERO ─────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 8rem 5vw 6rem;
    background: var(--ink);
}
.hero-content {
    position: relative; z-index: 1;
    max-width: 1300px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 3rem;
}
.hero-inner { max-width: 640px; }
.hero-image { flex-shrink: 0; max-width: 420px; width: 100%; }
.hero-image img {
    width: 100%; height: auto; display: block;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.hero-eyebrow {
    font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--orange-light); font-weight: 600; margin-bottom: 1.2rem; display: block;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05; color: var(--cream); margin-bottom: 1.5rem;
}
.hero-title em { color: var(--orange-light); font-style: italic; }
.hero-title-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.3rem, 2.2vw, 1.6rem);
    color: var(--orange-light);
    margin-top: -.5rem;
    margin-bottom: 1.5rem;
}
.hero-sub {
    font-size: 1.1rem; line-height: 1.7;
    color: rgba(var(--cream-rgb),.6); max-width: 50ch; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-inner { max-width: 100%; }
    .hero-image { max-width: 320px; margin: 0 auto; }
    .hero-actions { justify-content: center; }
}

/* ── SECCIONES ────────────────────────────────────────── */
.section-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.section-light { background: var(--cream); padding: 7rem 5vw; }
.section-dark  { background: var(--ink);   padding: 7rem 5vw; }
.section-cta   { background: var(--cream); padding: 7rem 5vw; text-align: center; }
.text-center   { text-align: center; }

.eyebrow {
    font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--orange); font-weight: 600; display: block; margin-bottom: .6rem;
}
.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1; margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--orange); }
.section-sub {
    font-size: 1rem; color: var(--muted); line-height: 1.7;
    max-width: 48ch; margin: 0 auto 2.5rem;
}

/* ── CARDS GRID ───────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; margin-top: 3.5rem;
}
.card {
    background: var(--cream); padding: 2.2rem 2rem;
    border: 1px solid var(--border); border-radius: 8px;
    transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-4px); }
.card-icon {
    display: inline-flex; width: 48px; height: 48px;
    background: rgba(242,100,25,.1); border-radius: 8px;
    align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--orange); margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.card p  { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ── SERVICES GRID (página Servicios) ──────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: 3.5rem;
}
.service-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2.4rem 2.2rem;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
    border-color: var(--orange-light);
}
.service-card-icon {
    display: inline-flex; width: 52px; height: 52px;
    background: rgba(242,100,25,.1); border-radius: 10px;
    align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--orange);
    margin-bottom: 1.4rem;
    transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.service-card:hover .service-card-icon {
    background: var(--orange);
    color: var(--cream);
    transform: scale(1.06) rotate(-4deg);
}
.service-card h2 {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin-bottom: .7rem;
    color: var(--ink);
}
.service-card p {
    font-size: .92rem;
    color: var(--mid);
    line-height: 1.65;
    margin-bottom: 1.4rem;
}
.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.service-features li {
    font-size: .85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .55rem;
}
.service-features i {
    color: var(--orange);
    font-size: .78rem;
    flex-shrink: 0;
}

/* ── FEATURES GRID ────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem; margin-top: 3.5rem;
}
.feature i {
    font-size: 1.4rem; color: var(--orange); margin-bottom: .8rem; display: block;
}
.feature h3 { font-size: 1rem; font-weight: 600; color: var(--cream); margin-bottom: .4rem; }
.feature p  { font-size: .85rem; color: rgba(var(--cream-rgb),.45); line-height: 1.65; }

/* ── CONTACTO / FORMULARIO ────────────────────────────── */
.contact-hero {
    background: var(--ink);
    padding: 8rem 5vw 6rem;
    position: relative; overflow: hidden;
}
.contact-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; text-align: center; }
.contact-hero .eyebrow { color: var(--orange-light); }
.contact-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--cream); line-height: 1.1; margin-bottom: 1rem;
}
.contact-hero h1 em { color: var(--orange-light); font-style: italic; }
.contact-hero p {
    color: rgba(var(--cream-rgb),.6); font-size: 1.05rem; line-height: 1.6;
}

.contact-section {
    background: var(--ink);
    padding: 0 5vw 7rem;
    position: relative;
}
.contact-wrap { max-width: 620px; margin: -3.5rem auto 0; position: relative; z-index: 2; }

.contact-card {
    background: var(--cream);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,.1);
    padding: 2.6rem 2.4rem;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0px, rgba(0,0,0,.02) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,.015) 0px, rgba(0,0,0,.015) 1px, transparent 1px, transparent 4px);
    background-size: 6px 6px;
    pointer-events: none;
}
.contact-card::after {
    content: '';
    position: absolute; inset: 0;
    opacity: .3;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    pointer-events: none;
}
.contact-card form {
    position: relative;
    z-index: 1;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: .7rem .9rem; font-size: .92rem; font-family: var(--sans);
    border: 1.5px solid var(--border); border-radius: 6px; background: var(--cream);
    color: var(--ink); transition: border-color .2s, background .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--orange); background: var(--cream);
}
.form-textarea { resize: vertical; min-height: 100px; }

.form-consent { display: flex; align-items: flex-start; gap: .6rem; margin: 1.6rem 0; }
.form-consent input[type="checkbox"] { margin-top: .2rem; accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; }
.form-consent label { font-size: .82rem; color: var(--mid); line-height: 1.5; }
.form-consent a { color: var(--orange); text-decoration: underline; cursor: pointer; }

.form-submit {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem;
    background: var(--orange); color: var(--cream); border: none; border-radius: 6px;
    padding: .95rem; font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: background .2s, transform .2s;
}
.form-submit:hover { background: var(--orange-light); transform: translateY(-1px); }

.contact-meta {
    display: flex; justify-content: center; gap: 2.4rem; flex-wrap: wrap;
    margin-top: 2.4rem; text-align: center;
}
.contact-meta-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.contact-meta-item i { color: var(--orange); font-size: 1.1rem; }
.contact-meta-item span { font-size: .82rem; color: var(--muted); }

/* ── MODAL PROPIO (sin Bootstrap) ─────────────────────── */
.modal-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(17,17,17,.65);
    align-items: center; justify-content: center;
    padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: var(--cream); border-radius: 12px;
    max-width: 560px; width: 100%;
    max-height: 82vh; overflow-y: auto;
    padding: 2.2rem 2rem;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    background-image:
        repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0px, rgba(0,0,0,.02) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,.015) 0px, rgba(0,0,0,.015) 1px, transparent 1px, transparent 4px);
    background-size: 6px 6px;
}
.modal-box h2 {
    font-family: var(--serif); font-size: 1.4rem; margin-bottom: 1.2rem; color: var(--ink);
}
.modal-box p { font-size: .88rem; color: var(--mid); line-height: 1.65; margin-bottom: .9rem; }
.modal-box p strong { color: var(--ink); }
.modal-box ul { margin: -0.3rem 0 .9rem 1.2rem; font-size: .88rem; color: var(--mid); line-height: 1.7; }
.modal-close {
    position: absolute; top: 1.2rem; right: 1.2rem;
    background: none; border: none; font-size: 1.4rem; color: var(--muted); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--ink); }

/* ── ANIMACIONES ──────────────────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── EQUIPO ───────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
.team-card {
    background: var(--cream); border-radius: 12px;
    border-top: 4px solid var(--orange);
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.team-card-photo {
    height: 220px;
    background: linear-gradient(135deg, var(--ink), #2a2a2a);
    display: flex; align-items: center; justify-content: center; position: relative;
}
.team-card-photo i { font-size: 5rem; color: rgba(242,100,25,.3); }
.team-card-badge {
    position: absolute; bottom: 12px; right: 12px;
    background: var(--orange); color: var(--cream);
    font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; padding: .3rem .8rem; border-radius: 3px;
}
.team-card-body { padding: 1.8rem; }
.team-card-body h2 {
    font-family: var(--serif); font-size: 1.5rem;
    margin-bottom: .8rem; color: var(--ink);
}
.team-card-list { list-style: none; padding: 0; margin: 0; }
.team-card-list li {
    display: flex; align-items: center; gap: .6rem;
    padding: .4rem 0; border-bottom: 1px solid var(--border);
    font-size: .88rem; color: var(--mid);
}
.team-card-list li span { color: var(--orange); font-size: .7rem; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
    background: var(--ink); padding: 3.5rem 5vw 1.5rem;
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem;
    position: relative; z-index: 1;
}
.footer-brand p { font-size: .85rem; color: rgba(var(--cream-rgb),.4); margin-top: .6rem; max-width: 28ch; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: .85rem; color: rgba(var(--cream-rgb),.45); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(var(--cream-rgb),.08); padding-top: 1.5rem; position: relative; z-index: 1; }
.footer-bottom p { font-size: .78rem; color: rgba(var(--cream-rgb),.25); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--cream); flex-direction: column;
        padding: 1.5rem 5vw; gap: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .hero { padding-top: 7rem; }
    .hero-actions { flex-direction: column; }
    .footer-inner { flex-direction: column; }
    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-wrap { margin-top: -2rem; }
}
/* ── PORTAFOLIO ───────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}
.portfolio-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.portfolio-card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.portfolio-card-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.portfolio-card-image.is-logo {
    background: var(--ink);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.portfolio-card-image.is-logo img {
    width: auto; height: 120px; max-width: 80%; object-fit: contain;
}
.portfolio-card-body { padding: 1.8rem 2rem; }
.portfolio-card-body h2 {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: .5rem;
}
.portfolio-card-body p {
    font-size: .9rem; color: var(--mid); line-height: 1.6; margin-bottom: 1.2rem;
}
.portfolio-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.portfolio-tag {
    font-size: .72rem; font-weight: 600; letter-spacing: .03em;
    color: var(--orange); background: rgba(242,100,25,.1);
    padding: .3rem .7rem; border-radius: 4px;
}
.portfolio-card-link {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .88rem; font-weight: 600; color: var(--ink);
    text-decoration: none; border-bottom: 2px solid var(--orange);
    padding-bottom: .1rem; transition: color .2s;
}
.portfolio-card-link:hover { color: var(--orange); }

/* ── REDES SOCIALES ───────────────────────────────────── */

/* En el footer */
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--cream-rgb), 0.06);
    color: rgba(var(--cream-rgb), 0.4);
    border: 1px solid rgba(var(--cream-rgb), 0.06);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s var(--ease);
}
.footer-social a:hover {
    transform: translateY(-2px);
    color: var(--cream);
    background: rgba(var(--cream-rgb), 0.12);
}
.footer-social a:hover .fa-instagram {
    color: #E4405F;
}
.footer-social a:hover .fa-envelope {
    color: var(--orange-light);
}

/* ── GRACIAS / THANKS PAGE ───────────────────────────── */

/* Hero de agradecimiento */
.thanks-hero {
    background: var(--ink);
    padding: 10rem 5vw 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.thanks-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px, transparent 1px, transparent 4px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,.02) 0px, rgba(255,255,255,.02) 1px, transparent 1px, transparent 4px);
    background-size: 6px 6px;
    pointer-events: none;
}
.thanks-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

/* Icono de check - MÁS GRANDE Y MEJOR */
.thanks-icon-wrapper {
    display: inline-block;
    margin-bottom: 2rem;
    position: relative;
}
.thanks-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 100, 25, 0.15) 0%, transparent 70%);
    animation: pulse-icon 2s ease-in-out infinite;
}
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}
.thanks-icon {
    display: inline-flex;
    width: 100px;
    height: 100px;
    background: rgba(242, 100, 25, 0.12);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(242, 100, 25, 0.3);
    position: relative;
    box-shadow: 0 0 60px rgba(242, 100, 25, 0.1);
}
.thanks-icon i {
    font-size: 3.8rem;
    color: var(--orange-light);
    filter: drop-shadow(0 4px 20px rgba(242, 100, 25, 0.2));
}
.thanks-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}
.thanks-hero h1 em {
    color: var(--orange-light);
    font-style: italic;
}
.thanks-sub {
    font-size: 1.1rem;
    color: rgba(var(--cream-rgb), 0.6);
    line-height: 1.8;
    max-width: 50ch;
    margin: 0 auto;
}
.thanks-sub strong {
    color: var(--cream);
    font-weight: 600;
}

/* Steps - MEJORADOS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.step-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}
.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    border-color: var(--orange-light);
}
.step-card:hover::before {
    transform: scaleX(1);
}
.step-number-wrapper {
    display: inline-block;
    margin-bottom: 1rem;
}
.step-number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--orange);
    background: rgba(242, 100, 25, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(242, 100, 25, 0.15);
}
.step-icon-wrapper {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: rgba(242, 100, 25, 0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s var(--ease);
}
.step-card:hover .step-icon-wrapper {
    background: var(--orange);
    transform: scale(1.05) rotate(-4deg);
}
.step-icon {
    font-size: 1.8rem;
    color: var(--orange);
    transition: color 0.3s var(--ease);
}
.step-card:hover .step-icon {
    color: var(--cream);
}
.step-card h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}
.step-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Contact Grid en Thanks */
.thanks-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.thanks-contact-info {
    padding-right: 1rem;
}
.thanks-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.thanks-contact-item i {
    font-size: 1.2rem;
    color: var(--orange-light);
    margin-top: 0.2rem;
    width: 24px;
    flex-shrink: 0;
}
.thanks-contact-item div {
    display: flex;
    flex-direction: column;
}
.thanks-contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(var(--cream-rgb), 0.35);
    font-weight: 600;
}
.thanks-contact-item a,
.thanks-contact-item span {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.thanks-contact-item a:hover {
    color: var(--orange-light);
}

/* Redes Sociales en Thanks */
.thanks-social {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(var(--cream-rgb), 0.08);
}
.thanks-social-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(var(--cream-rgb), 0.35);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}
.thanks-social-icons {
    display: flex;
    gap: 1rem;
}
.social-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    background: rgba(var(--cream-rgb), 0.06);
    color: rgba(var(--cream-rgb), 0.6);
    border: 1px solid rgba(var(--cream-rgb), 0.08);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s var(--ease);
    position: relative;
}
.social-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s var(--ease);
}
.social-btn .social-tooltip {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s var(--ease);
}
.social-btn:hover .social-tooltip {
    opacity: 1;
    transform: translateY(0);
}
.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.social-btn:hover i {
    transform: scale(1.1);
}
/* Instagram hover */
.social-btn.instagram:hover {
    background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    border-color: #E1306C;
    color: #fff;
}
/* Gmail hover */
.social-btn.email:hover {
    background: linear-gradient(135deg, #D44638, #B23121);
    border-color: #D44638;
    color: #fff;
}

/* Acciones - BOTONES MEJORADOS */
.thanks-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
.thanks-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.thanks-action-btn i {
    font-size: 1rem;
    transition: transform 0.3s var(--ease);
}
.thanks-action-btn:hover i {
    transform: translateX(4px);
}
.thanks-action-btn.primary {
    background: var(--orange);
    color: var(--cream);
    grid-column: 1 / -1;
    box-shadow: 0 4px 20px rgba(242, 100, 25, 0.3);
}
.thanks-action-btn.primary:hover {
    background: var(--orange-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(242, 100, 25, 0.4);
}
.thanks-action-btn.secondary {
    background: rgba(var(--cream-rgb), 0.06);
    color: rgba(var(--cream-rgb), 0.7);
    border: 1.5px solid rgba(var(--cream-rgb), 0.08);
}
.thanks-action-btn.secondary:hover {
    background: rgba(var(--cream-rgb), 0.12);
    color: var(--cream);
    transform: translateY(-3px);
    border-color: var(--orange-light);
}

/* Trust section */
.thanks-trust {
    padding: 1rem 0;
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .thanks-hero {
        padding: 8rem 5vw 4rem;
    }
    .thanks-icon {
        width: 80px;
        height: 80px;
    }
    .thanks-icon i {
        font-size: 3rem;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .thanks-contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .thanks-contact-info {
        padding-right: 0;
    }
    .thanks-actions-grid {
        grid-template-columns: 1fr;
    }
    .thanks-action-btn.primary {
        grid-column: 1;
    }
    .thanks-social-icons {
        flex-wrap: wrap;
    }
    .social-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* ── RESPONSIVE EQUIPO ────────────────────────────────── */
@media (max-width: 900px) {
    /* Equipo - Una columna en móvil */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .team-card {
        max-width: 100%;
    }
    .team-card-photo {
        height: 200px;
    }
    .team-card-body {
        padding: 1.5rem;
    }
    .team-card-body h2 {
        font-size: 1.3rem;
    }
    .team-card-list li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
}
