/* =====================================================
   Filmed Studio — assets/css/main.css
   Tema WordPress para filmed.com.mx
   ===================================================== */

:root {
  --gold:   #D4A843;
  --gold-l: #F0C96A;
  --gold-d: #8A6B22;
  --gold-dim: rgba(212,168,67,0.15);
  --black:  #070707;
  --dark:   #0F0F0F;
  --dark2:  #161616;
  --dark3:  #1E1E1E;
  --border: rgba(255,255,255,0.07);
  --white:  #F5F2EC;
  --gray:   #777770;
  --gray-l: #ABABAB;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: 'DM Sans', sans-serif; font-weight: 300; line-height: 1.7; overflow-x: hidden; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-d); border-radius: 2px; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 4rem; transition: background .4s, padding .3s; }
nav.scrolled { background: rgba(7,7,7,.96); backdrop-filter: blur(12px); padding: .8rem 4rem; border-bottom: 1px solid var(--border); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 38px; display: block; }
.nav-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: .1em; color: var(--gold); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a { color: var(--gray-l); text-decoration: none; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; transition: color .3s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--black) !important; padding: .45rem 1.2rem !important; border-radius: 2px !important; font-weight: 500 !important; }
.nav-cta:hover { background: var(--gold-l) !important; }
.nav-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-menu-btn span { display: block; width: 22px; height: 1.5px; background: var(--white); margin: 5px 0; transition: all .3s; }

/* Mobile menu */
.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(7,7,7,.98); backdrop-filter: blur(16px); z-index: 190; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; padding: 4rem 2rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--white); text-decoration: none; font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: .1em; transition: color .3s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--gray-l); font-size: 1.5rem; cursor: pointer; transition: color .3s; }
.mobile-close:hover { color: var(--gold); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 5.5rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--black); /* fallback while video loads */
}
.hero-video-wrap {
  /* Always fills the full hero section regardless of padding */
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--black);
}
/* The iframe is sized via the aspect-ratio trick:
   we set width/height to a large value and center it.
   This guarantees full coverage on any viewport. */
.hero-video-wrap iframe {
  position: absolute;
  top: 50%; left: 50%;
  /* Start at 16:9 minimum, always fills */
  width: 100vmax;
  height: calc(100vmax * 9 / 16);
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}
/* Overlay: covers 100% of .hero-video-wrap = 100% of .hero */
.hero-video-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(7,7,7,1)    0%,
    rgba(7,7,7,.78)  30%,
    rgba(7,7,7,.50)  60%,
    rgba(7,7,7,.28)  80%,
    rgba(7,7,7,.20) 100%
  );
}
.hero-content { position: relative; z-index: 2; } /* above video overlay (z:1) */
.hero-eyebrow { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .8rem; opacity: 0; animation: fadeUp 1s ease .3s forwards; }
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem,10.5vw,10rem); line-height: .9; letter-spacing: .01em; margin-bottom: 1.8rem; opacity: 0; animation: fadeUp 1s ease .5s forwards; }
.hero-title span { color: var(--gold); }
.hero-sub { max-width: 500px; font-size: .95rem; color: var(--gray-l); line-height: 1.85; margin-bottom: 2.8rem; opacity: 0; animation: fadeUp 1s ease .7s forwards; }
.hero-actions { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s ease .9s forwards; }
.hero-stats { position: absolute; right: 4rem; bottom: 5.5rem; z-index: 2; display: flex; flex-direction: column; gap: 2rem; text-align: right; opacity: 0; animation: fadeUp 1s ease 1.1s forwards; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gray); }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--gray); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; animation: pulse 2.5s infinite; }
.hero-scroll::after { content: ''; display: block; width: 1px; height: 36px; background: linear-gradient(to bottom, var(--gray), transparent); }

/* ── BUTTONS ── */
.btn-gold { background: var(--gold); color: var(--black); padding: .85rem 2rem; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-radius: 2px; display: inline-block; transition: background .3s, transform .2s; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); color: var(--black); }
.btn-ghost { color: var(--gray-l); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; transition: color .3s; background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-ghost::after { content: '→'; transition: transform .3s; }
.btn-ghost:hover { color: var(--gold); }
.btn-ghost:hover::after { transform: translateX(5px); }

/* ── SECTION BASE ── */
section { padding: 7rem 4rem; }
.section-eyebrow { font-size: .65rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: .8rem; }
.section-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.section-h { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.6rem,5.5vw,5rem); line-height: .93; letter-spacing: .02em; margin-bottom: 1.2rem; }
.section-h span { color: var(--gold); }
.section-p { color: var(--gray-l); max-width: 520px; font-size: .92rem; line-height: 1.9; }
.hr { height: 1px; background: linear-gradient(to right, transparent, var(--dark3), transparent); }

/* ── SHOWREEL ── */
.showreel-sec { background: var(--dark); text-align: center; }
.showreel-sec .section-p { margin: 0 auto; }
.yt-player { position: relative; width: 100%; max-width: 920px; margin: 3.5rem auto 0; aspect-ratio: 16/9; background: var(--dark2); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.yt-thumb { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; background: var(--dark2); transition: opacity .4s; z-index: 2; }
.yt-thumb.gone { opacity: 0; pointer-events: none; }
.play-ring { width: 76px; height: 76px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; transition: transform .3s, background .3s; cursor: pointer; }
.play-ring:hover { transform: scale(1.08); background: var(--gold-l); }
.play-ring svg { margin-left: 5px; }
.yt-thumb-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-l); }
.yt-thumb-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(212,168,67,.05), transparent); pointer-events: none; }

/* ── SERVICES ── */
.services-sec { background: var(--black); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); border: 1px solid var(--border); margin-top: 4rem; gap: 1px; }
.svc-card { padding: 2.5rem 2rem; background: var(--black); position: relative; overflow: hidden; transition: background .4s; cursor: default; }
.svc-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(212,168,67,.05),transparent); opacity: 0; transition: opacity .4s; }
.svc-card:hover { background: var(--dark); }
.svc-card:hover::before { opacity: 1; }
.svc-n { font-family: 'Bebas Neue', sans-serif; font-size: 3.8rem; color: var(--dark3); line-height: 1; margin-bottom: 1.2rem; transition: color .4s; }
.svc-card:hover .svc-n { color: rgba(212,168,67,.25); }
.svc-name { font-size: 1rem; font-weight: 500; color: var(--white); margin-bottom: .6rem; }
.svc-desc { font-size: .83rem; color: var(--gray); line-height: 1.8; }
.svc-tag { display: inline-block; margin-top: 1.2rem; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-d); border: 1px solid var(--gold-d); padding: .25rem .7rem; border-radius: 2px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.svc-card:hover .svc-tag { opacity: 1; transform: translateY(0); }

/* ── PROJECTS ── */
.projects-sec { background: var(--dark); }
.proj-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1.5rem; }
.proj-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 14px; }
.proj-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; transition: border-color .3s, transform .3s; background: var(--dark2); }
.proj-card:hover { border-color: var(--gold-d); transform: translateY(-3px); }
.proj-card.wide { grid-column: span 7; }
.proj-card.slim { grid-column: span 5; }
.proj-card.half { grid-column: span 6; }
.proj-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--dark3); }
.proj-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.proj-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proj-label { position: absolute; inset: 0; background: linear-gradient(to top,rgba(7,7,7,.92) 0%,transparent 55%); opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; padding: 1.2rem; }
.proj-card:hover .proj-label { opacity: 1; }
.proj-play { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.proj-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 3rem; letter-spacing: .1em; color: rgba(255,255,255,.06); transition: transform .5s; }
.proj-card:hover .proj-placeholder { transform: scale(1.04); }
.proj-info { padding: 1.3rem 1.5rem; }
.proj-client { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.proj-title { font-size: .95rem; font-weight: 500; color: var(--white); margin-bottom: .25rem; }
.proj-type { font-size: .75rem; color: var(--gray); }
.g-onna   { background: linear-gradient(135deg,#140e00,#211800); }
.g-mangas { background: linear-gradient(135deg,#080820,#10102a); }
.g-mindray{ background: linear-gradient(135deg,#001408,#001e10); }
.g-food   { background: linear-gradient(135deg,#140800,#1e1000); }
.g-edu    { background: linear-gradient(135deg,#0a0018,#12002a); }
.g-pod    { background: linear-gradient(135deg,#0c0c0c,#1a1a1a); }

/* ── PRICING ── */
.pricing-sec { background: var(--black); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); border: 1px solid var(--border); margin-top: 4rem; gap: 1px; }
.price-card { padding: 2.8rem 2.2rem; background: var(--black); display: flex; flex-direction: column; position: relative; }
.price-card.feat { background: var(--dark); border-top: 2px solid var(--gold); }
.price-badge { position: absolute; top: -1px; left: 2.2rem; background: var(--gold); color: var(--black); font-size: .58rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; padding: .28rem .7rem; }
.price-tier { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); margin-bottom: 1.2rem; }
.price-val { font-family: 'Bebas Neue', sans-serif; font-size: 3.2rem; color: var(--white); line-height: 1; margin-bottom: .2rem; }
.price-val small { font-size: 1rem; color: var(--gray); font-family: 'DM Sans', sans-serif; font-weight: 300; }
.price-per { font-size: .72rem; color: var(--gray); margin-bottom: 1.8rem; }
.price-hr { height: 1px; background: var(--dark3); margin-bottom: 1.8rem; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: .85rem; flex: 1; margin-bottom: 2rem; }
.price-feats li { font-size: .83rem; color: var(--gray-l); display: flex; align-items: flex-start; gap: .7rem; }
.price-feats li::before { content: '✓'; color: var(--gold); font-size: .75rem; flex-shrink: 0; margin-top: .1rem; }
.price-btn { display: block; text-align: center; padding: .85rem; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: all .3s; font-weight: 500; }
.price-btn.outline { border: 1px solid var(--border); color: var(--white); }
.price-btn.outline:hover { border-color: var(--gold); color: var(--gold); }
.price-btn.solid { background: var(--gold); color: var(--black); }
.price-btn.solid:hover { background: var(--gold-l); }

/* ── TESTIMONIALS WRITTEN ── */
.testi-written-sec { background: var(--dark); }
.testi-w-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 20px; margin-top: 4rem; }
.testi-w-card { border: 1px solid var(--border); border-radius: 4px; padding: 2rem; background: var(--black); display: flex; flex-direction: column; transition: border-color .3s; }
.testi-w-card:hover { border-color: var(--gold-d); }
.testi-qm { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: var(--gold-d); line-height: .6; margin-bottom: 1rem; display: block; font-style: italic; }
.testi-q { font-size: .86rem; color: var(--gray-l); line-height: 1.85; font-style: italic; flex: 1; margin-bottom: 1.4rem; }
.testi-stars { color: var(--gold); font-size: .75rem; letter-spacing: .1em; margin-bottom: .8rem; }
.testi-auth { display: flex; align-items: center; gap: .7rem; }
.testi-av { width: 34px; height: 34px; border-radius: 50%; background: var(--dark3); border: 1px solid var(--gold-d); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 500; color: var(--gold); flex-shrink: 0; }
.testi-name { font-size: .83rem; font-weight: 500; color: var(--white); }
.testi-co { font-size: .72rem; color: var(--gray); }

/* ── TESTIMONIALS VIDEO ── */
.testi-video-sec { background: var(--black); }
.testi-v-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 4rem;
  /* Max 3 cols to keep reels a good size */
  max-width: 1000px;
}
.testi-v-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--dark); transition: border-color .3s; }
.testi-v-card:hover { border-color: var(--gold-d); }
/* Vertical 9:16 ratio for Instagram reels */
.testi-v-embed {
  position: relative;
  padding-top: 177.78%; /* 16/9 * 100 = 9:16 vertical */
  background: var(--dark2);
  overflow: hidden;
}
.testi-v-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.testi-v-body { padding: 1.2rem 1.4rem; }
.testi-v-auth { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.testi-v-name { font-size: .88rem; font-weight: 500; color: var(--white); }
.testi-v-co { font-size: .73rem; color: var(--gray); }
.testi-v-snippet { font-size: .82rem; color: var(--gray-l); line-height: 1.75; font-style: italic; }
.testi-v-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-d); text-decoration: none; transition: color .3s; margin-top: .8rem; }
.testi-v-link:hover { color: var(--gold); }

/* ── ABOUT ── */
.about-sec { background: var(--dark); display: flex; justify-content: center; }
.about-sec > .about-grid { max-width: 1100px; width: 100%; }
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 4rem; align-items: center; justify-content: center; }
.about-vis { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.about-frame { width: 100%; max-width: 260px; aspect-ratio: 3/4; background: var(--dark2); border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 auto; }
.about-initials { font-family: 'Bebas Neue', sans-serif; font-size: 9rem; color: rgba(255,255,255,.04); letter-spacing: .1em; user-select: none; }
.about-accent { display: none; }
.about-badge { position: absolute; top: 1.5rem; left: calc(50% - 140px - 1rem); background: var(--gold); color: var(--black); padding: .9rem 1rem; text-align: center; z-index: 2; }
.about-badge-n { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; line-height: 1; display: block; }
.about-badge-t { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; display: block; margin-top: .1rem; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin: 1.8rem 0 2.2rem; }
.about-list li { display: flex; align-items: center; gap: .7rem; font-size: .86rem; color: var(--gray-l); }
.about-list li::before { content: ''; display: block; width: 18px; height: 1px; background: var(--gold); flex-shrink: 0; }

/* ── CONTACT ── */
.contact-sec { background: var(--black); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; margin-top: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item-lbl { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.contact-item-val { font-size: 1rem; color: var(--white); text-decoration: none; transition: color .3s; }
.contact-item-val:hover { color: var(--gold); }
.social-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.social-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border: 1px solid var(--border); border-radius: 2px; color: var(--gray-l); text-decoration: none; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; transition: all .3s; }
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.form { display: flex; flex-direction: column; gap: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-grp { display: flex; flex-direction: column; gap: .35rem; }
.form-lbl { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.form-input, .form-sel, .form-ta { background: var(--dark2); border: 1px solid var(--border); border-radius: 2px; color: var(--white); font-family: 'DM Sans', sans-serif; font-size: .88rem; padding: .8rem 1rem; transition: border-color .3s; outline: none; width: 100%; }
.form-input:focus, .form-sel:focus, .form-ta:focus { border-color: var(--gold); }
.form-sel { appearance: none; cursor: pointer; }
.form-ta { resize: vertical; min-height: 110px; }
.form-submit { background: var(--gold); color: var(--black); border: none; padding: .95rem; font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; border-radius: 2px; cursor: pointer; transition: background .3s, transform .2s; margin-top: .3rem; width: 100%; }
.form-submit:hover { background: var(--gold-l); transform: translateY(-2px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-msg.success { background: rgba(59,109,17,.15); color: #7bc143; border: 1px solid rgba(59,109,17,.3); }
.form-msg.error { background: rgba(162,45,45,.15); color: #f09595; border: 1px solid rgba(162,45,45,.3); }

/* ── FOOTER ── */
footer { background: var(--black); padding: 2.5rem 4rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-logo img { height: 28px; }
.footer-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: .1em; color: var(--gold); }
.footer-copy { font-size: .75rem; color: var(--gray); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); text-decoration: none; transition: color .3s; }
.footer-links a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100% { opacity:.5; transform:translateX(-50%) translateY(0); } 50% { opacity:1; transform:translateX(-50%) translateY(5px); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  nav.scrolled { padding: .7rem 2rem; }
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  section { padding: 5rem 2rem; }
  .hero { padding: 0 2rem 4rem; }
  .hero-stats { position: static; flex-direction: row; gap: 2rem; margin-top: 2.5rem; text-align: left; }
  .proj-card.wide, .proj-card.slim, .proj-card.half { grid-column: span 12; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-frame { aspect-ratio: 4/3; }
  .about-accent { display: none; }
  .about-badge { left: 1rem; top: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 640px) {
  .hero-title { font-size: clamp(3.5rem,14vw,6rem); }
  .price-grid, .testi-w-grid, .testi-v-grid, .svc-grid { grid-template-columns: 1fr; }
}

/* ── WHATSAPP BUTTON — corporate dark style ── */
.btn-wa {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent;
  color: var(--white);
  padding: .85rem 1.8rem;
  font-size: .75rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  border: 1px solid rgba(255,255,255,.18);
  transition: border-color .3s, color .3s, transform .2s;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
}
.btn-wa:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-wa svg { flex-shrink: 0; opacity: .7; transition: opacity .3s; }
.btn-wa:hover svg { opacity: 1; }
.btn-wa-lg { padding: .85rem 2.2rem; font-size: .78rem; }

/* ── HERO ACTIONS with WA ── */
.hero-actions { gap: 1rem; }

/* ── ABOUT BTNS ── */
.about-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0; }

/* ── PRICING WA BTN ── */
.price-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem; margin-top: .6rem;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
  background: transparent; color: var(--gray-l);
  border: 1px solid var(--border); transition: all .3s;
}
.price-btn-wa:hover { border-color: var(--gold-d); color: var(--gold); }
.price-btn-wa svg { opacity: .6; transition: opacity .3s; }
.price-btn-wa:hover svg { opacity: 1; }

/* ── CTA BLOCK SECTION ── */
.cta-block-sec {
  background: var(--dark);
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
}
.cta-block-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212,168,67,.05), transparent);
  pointer-events: none;
}
.cta-block-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.cta-block-btns {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ── TESTIMONIALS — avatar with photo ── */
.testi-av-img {
  width: 38px; height: 38px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid var(--gold-d);
  flex-shrink: 0;
  transition: border-color .3s;
}
.testi-av-link { display: flex; flex-shrink: 0; }
.testi-av-link:hover .testi-av-img { border-color: var(--gold); }
.testi-av-link:hover + div .testi-name { color: var(--gold); }
.testi-name-link { text-decoration: none; }
.testi-name-link:hover .testi-name { color: var(--gold); }
.testi-name-link .testi-name { transition: color .3s; }

/* ── TESTI VIDEO — thumbnail only ── */
.testi-v-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 4rem;
  max-width: 880px;
}
.testi-v-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--dark); transition: border-color .3s, transform .2s; }
.testi-v-card:hover { border-color: var(--gold-d); transform: translateY(-3px); }

.testi-v-thumb {
  display: block;
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: var(--dark2);
  text-decoration: none;
}
.testi-v-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.testi-v-card:hover .testi-v-thumb img { transform: scale(1.04); }

.testi-v-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.testi-v-placeholder-inner {
  display: flex; flex-direction: column; align-items: center; padding: 1.5rem;
}

.testi-v-play-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,7,.85) 0%, rgba(7,7,7,.2) 50%, transparent 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .8rem;
  opacity: 0; transition: opacity .3s;
}
.testi-v-card:hover .testi-v-play-overlay { opacity: 1; }

.testi-v-play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
}
.testi-v-ig-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(212,168,67,.15);
  border: 1px solid rgba(212,168,67,.3);
  color: var(--gold); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .3rem .8rem; border-radius: 20px;
}
.testi-v-body { padding: 1rem 1.2rem; }
.testi-v-auth { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.testi-v-name { font-size: .85rem; font-weight: 500; color: var(--white); }
.testi-v-co { font-size: .72rem; color: var(--gray); }
.testi-v-snippet { font-size: .8rem; color: var(--gray-l); line-height: 1.7; font-style: italic; }
/* Remove old testi-v-link since we no longer use it */

/* responsive cta-block */
@media (max-width: 640px) {
  .cta-block-sec { padding: 4rem 2rem; }
  .cta-block-btns { flex-direction: column; align-items: center; }
}

/* ═══════════════════════════════════════════
   GRIDS — Testimonios Video y Escritos v5
   4 default, max 6, mobile 3 → 1
   ═══════════════════════════════════════════ */

/* ── Testimonios VIDEO grid ── */
.testi-v-grid {
  display: grid;
  gap: 16px;
  margin-top: 4rem;
}
/* Responsive: 1 col → 2 → 3 → 4 default (expandible a 6) */
@media (min-width: 480px)  { .testi-v-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .testi-v-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .testi-v-grid { grid-template-columns: repeat(4, 1fr); } }

/* When there are 5 or 6 active cards, expand to fill the row */
@media (min-width: 1100px) {
  .testi-v-grid--5 { grid-template-columns: repeat(5, 1fr); }
  .testi-v-grid--6 { grid-template-columns: repeat(6, 1fr); }
}
/* On tablet show 3 for 5-6 too */
@media (min-width: 768px) and (max-width: 1099px) {
  .testi-v-grid--5,
  .testi-v-grid--6 { grid-template-columns: repeat(3, 1fr); }
}

/* Compact card for many-per-row layout */
.testi-v-card { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--dark); transition: border-color .3s, transform .2s; }
.testi-v-card:hover { border-color: var(--gold-d); transform: translateY(-3px); }

/* Thumbnail — vertical 9:16 for video testimonials */
.testi-v-thumb {
  display: block; position: relative;
  aspect-ratio: 9/16;
  overflow: hidden; background: var(--dark2);
  cursor: pointer;
}
.testi-v-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s; }
.testi-v-card:hover .testi-v-thumb img { transform: scale(1.04); }

.testi-v-play-overlay {
  position: absolute; inset: 0;
  background: rgba(7,7,7,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.testi-v-thumb:hover .testi-v-play-overlay { opacity: 1; }
.testi-v-play-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  color: var(--black); transition: transform .2s, background .2s;
}
.testi-v-thumb:hover .testi-v-play-btn { transform: scale(1.1); background: var(--gold-l); }

.testi-v-placeholder {
  width:100%; height:100%;
  display: flex; align-items: center; justify-content: center;
}
.testi-v-placeholder-inner { display:flex; flex-direction:column; align-items:center; padding:1rem; }

.testi-v-body { padding: .9rem 1rem; }
.testi-v-auth { display:flex; align-items:center; gap:.5rem; margin-bottom:.4rem; }
.testi-v-name { font-size:.82rem; font-weight:500; color:var(--white); }
.testi-v-co   { font-size:.7rem;  color:var(--gray); }
.testi-v-snippet { font-size:.78rem; color:var(--gray-l); line-height:1.65; font-style:italic; }

/* ── Testimonios ESCRITOS grid ── */
.testi-w-grid {
  display: grid;
  gap: 16px;
  margin-top: 4rem;
}
@media (min-width: 480px)  { .testi-w-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .testi-w-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .testi-w-grid { grid-template-columns: repeat(4, 1fr); } }
/* Override: if few items keep max 3 columns so cards aren't too narrow */
@media (min-width: 1200px) {
  .testi-w-grid:has(> .testi-w-card:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile: always 2 columns minimum for testimonials */
@media (max-width: 479px) {
  .testi-v-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .testi-w-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* Compact text for 2-col on tiny screens */
  .testi-q    { font-size: .76rem; }
  .testi-name { font-size: .76rem; }
  .testi-v-snippet { font-size: .72rem; }
}

/* Compact card styles for tighter grid */
.testi-w-card {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 1.5rem; background: var(--black);
  display: flex; flex-direction: column; transition: border-color .3s;
}
.testi-w-card:hover { border-color: var(--gold-d); }
.testi-qm { font-family:'Playfair Display',serif; font-size:2.8rem; color:var(--gold-d); line-height:.6; margin-bottom:.8rem; display:block; font-style:italic; }
.testi-q  { font-size:.83rem; color:var(--gray-l); line-height:1.8; font-style:italic; flex:1; margin-bottom:1.2rem; }
.testi-stars { color:var(--gold); font-size:.72rem; letter-spacing:.1em; margin-bottom:.7rem; }
.testi-auth { display:flex; align-items:center; gap:.65rem; }
.testi-av   { width:34px; height:34px; border-radius:50%; background:var(--dark3); border:1px solid var(--gold-d); display:flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:500; color:var(--gold); flex-shrink:0; }
.testi-name { font-size:.82rem; font-weight:500; color:var(--white); }
.testi-co   { font-size:.7rem; color:var(--gray); }

/* ── Projects — proj-thumb iframe overlay ── */
.proj-thumb { position: relative; }
.proj-overlay {
  position: absolute; inset: 0;
  background: rgba(7,7,7,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .4rem; opacity: 0; transition: opacity .3s; cursor: pointer;
}
.proj-card:hover .proj-overlay { opacity: 1; }
.proj-overlay--noop { cursor: default; pointer-events: none; }
.proj-play-label { font-size: .62rem; letter-spacing: .15em; text-transform: uppercase; color: var(--white); }


/* ═══════════════════════════════════════════
   HERO — Mobile/Tablet fixes v6
   ═══════════════════════════════════════════ */

/* ── HERO MOBILE / TABLET ── */
@media (max-width: 1024px) {
  .hero {
    min-height: 100svh;
    padding: 80px 2rem 3rem;   /* top = nav height, content pushed to bottom */
    justify-content: flex-end; /* text stays at the bottom like desktop */
  }
  .hero-content { position: relative; z-index: 2; margin-top: 0; }
  /* iframe sizing handled by vmax rule — no override needed */
}

/* ── NOSOTROS TABLET ── */
@media (min-width: 641px) and (max-width: 1024px) {
  .about-sec > .about-grid {
    grid-template-columns: 1fr;   /* stack vertically on tablet */
    max-width: 600px;
  }
  .about-frame {
    max-width: 100%;               /* full width of column */
    aspect-ratio: 4/3;             /* wider/squarish */
    border-radius: 6px;
  }
  .about-vis {
    width: 100%;
  }
  .about-badge {
    left: auto;
    right: 1rem;
    top: 1rem;
  }
}
@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
    padding: 100px 1.5rem 3rem;
  }
  .hero-stats { gap: 1.2rem; }
  .stat-num   { font-size: 2rem; }
}

/* ═══════════════════════════════════════════
   SOCIAL FOLLOW SECTION
   ═══════════════════════════════════════════ */
.social-follow-sec {
  background: var(--dark);
  padding: 6rem 4rem;
  text-align: center;
}
.social-follow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.social-follow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 2rem 1.5rem;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color .3s, transform .2s, background .3s;
  position: relative;
  overflow: hidden;
}
.social-follow-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,168,67,.05), transparent);
  opacity: 0; transition: opacity .3s;
}
.social-follow-card:hover { border-color: var(--gold-d); transform: translateY(-3px); }
.social-follow-card:hover::before { opacity: 1; }
.social-follow-icon { color: var(--gold); opacity: .85; transition: opacity .3s; }
.social-follow-card:hover .social-follow-icon { opacity: 1; }
.social-follow-name { font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); }
.social-follow-handle { font-size: .95rem; font-weight: 500; color: var(--white); }
.social-follow-count { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--gold); line-height: 1; }
.social-follow-btn {
  margin-top: .5rem;
  font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-d); border: 1px solid var(--gold-d);
  padding: .3rem .9rem; border-radius: 2px;
  transition: color .3s, border-color .3s;
}
.social-follow-card:hover .social-follow-btn { color: var(--gold); border-color: var(--gold); }

@media (max-width: 1024px) { .social-follow-sec { padding: 5rem 2rem; } }
@media (max-width: 640px) {
  .social-follow-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════
   LOGO CAROUSEL
   ═══════════════════════════════════════════ */
.logo-carousel-sec {
  background: var(--black);
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}
.logo-carousel-label {
  text-align: center;
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2rem;
  padding: 0 2rem;
}
.logo-carousel-mask {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logo-carousel-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: logoScroll 30s linear infinite;
}
.logo-carousel-track:hover { animation-play-state: paused; }
.logo-carousel-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 .5rem;
}
.logo-carousel-item img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  /* One-tint effect: white tinted slightly gold */
  filter: brightness(0) invert(1) opacity(0.35) sepia(0.3) saturate(0.8);
  transition: filter .3s;
}
.logo-carousel-item:hover img {
  filter: brightness(0) invert(1) opacity(0.75) sepia(0.3) saturate(0.8);
}

@keyframes logoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); } /* scroll one third = one full copy */
}

/* Reduce speed on mobile */
@media (max-width: 768px) {
  .logo-carousel-track { animation-duration: 20s; gap: 2rem; }
  .logo-carousel-item img { height: 28px; max-width: 90px; }
}


/* ═══════════════════════════════════════
   SECCIÓN CURSO
   ═══════════════════════════════════════ */
.curso-sec {
  background: var(--black);
  padding: 7rem 4rem;
  position: relative;
  overflow: hidden;
}
.curso-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(212,168,67,.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 20%, rgba(212,168,67,.04) 0%, transparent 50%);
}
/* Diagonal gold accent line */
.curso-sec::before {
  content: '';
  position: absolute;
  top: 0; right: 10%;
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(212,168,67,.2), transparent);
}
.curso-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.curso-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 2px;
  margin-bottom: 1.2rem;
  animation: pulseBadge 2.5s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,168,67,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(212,168,67,0); }
}
.curso-pretitle {
  font-size: .85rem; color: var(--gray-l); letter-spacing: .05em;
  margin-bottom: .8rem;
}
.curso-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: .92; letter-spacing: .02em;
  color: var(--white); margin-bottom: 1.5rem;
}
.curso-title span { color: var(--gold); }
.curso-desc {
  font-size: .95rem; color: var(--gray-l); line-height: 1.85;
  max-width: 480px; margin-bottom: 2rem;
}
.curso-price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; color: var(--gold); line-height: 1;
  margin-bottom: 1.8rem;
}
.curso-btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.curso-btn-main { } /* inherits .btn-gold */
.curso-btn-sec {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray-l); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 2px; transition: color .3s, border-color .3s;
}
.curso-btn-sec:hover { color: var(--gold); border-color: var(--gold); }

/* Right visual */
.curso-visual {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1.5rem;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem 2rem;
  min-height: 280px;
  position: relative; overflow: hidden;
}
.curso-visual::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,168,67,.05), transparent);
}
.curso-icon-wrap {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(212,168,67,.1); border: 1px solid rgba(212,168,67,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.curso-visual-label { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gray); }
.curso-dots { display: flex; gap: .5rem; }
.curso-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-d);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.curso-dots span:nth-child(2) { animation-delay: .2s; }
.curso-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotPulse { 0%,80%,100%{opacity:.3;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }

.curso-play-big {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  color: var(--black);
}
.curso-feat-list { display: flex; flex-direction: column; gap: .7rem; width: 100%; }
.curso-feat-item {
  display: flex; align-items: center; gap: .7rem;
  font-size: .85rem; color: var(--gray-l);
}
.curso-feat-check { color: var(--gold); font-size: .8rem; flex-shrink: 0; }

@media (max-width: 1024px) { .curso-sec { padding: 5rem 2rem; } .curso-inner { grid-template-columns: 1fr; gap: 3rem; } }
@media (max-width: 640px)  { .curso-title { font-size: clamp(2.8rem,10vw,4rem); } }

/* ═══════════════════════════════════════
   SECCIÓN BLOG
   ═══════════════════════════════════════ */
.blog-sec-wrap { background: var(--dark); padding: 7rem 4rem; }
.blog-sec-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3.5rem;
}
.blog-sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
/* Featured post takes full width if first */
.blog-card--featured { grid-column: span 2; }
@media (max-width: 900px) { .blog-card--featured { grid-column: span 1; } }

.blog-card {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .2s;
}
.blog-card:hover { border-color: var(--gold-d); transform: translateY(-3px); }

.blog-card-img-wrap {
  display: block; position: relative;
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--dark2); text-decoration: none;
}
.blog-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.04); }
.blog-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,7,7,.6) 0%, transparent 50%);
}
.blog-card-no-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--dark3);
}

.blog-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-cat {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .5rem; display: block;
}
.blog-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; line-height: 1.1; letter-spacing: .02em;
  margin-bottom: .6rem;
}
.blog-card-title a { color: var(--white); text-decoration: none; transition: color .3s; }
.blog-card-title a:hover { color: var(--gold); }
.blog-card-exc { font-size: .83rem; color: var(--gray-l); line-height: 1.75; flex: 1; margin-bottom: 1.2rem; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.blog-card-date { font-size: .72rem; color: var(--gray); }
.blog-card-link {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-d); text-decoration: none; transition: color .3s;
}
.blog-card-link:hover { color: var(--gold); }

@media (max-width: 1024px) { .blog-sec-wrap { padding: 5rem 2rem; } }
@media (max-width: 640px)  { .blog-sec-grid { grid-template-columns: 1fr; } }


/* ── TESTIMONIOS ESCRITOS — truncar en móvil/tablet ── */
@media (max-width: 1024px) {
  .testi-q {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all .3s;
  }
  .testi-q.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .testi-readmore {
    display: inline-block;
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-d);
    cursor: pointer;
    margin-top: .4rem;
    background: none;
    border: none;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    transition: color .3s;
  }
  .testi-readmore:hover { color: var(--gold); }
}
@media (min-width: 1025px) {
  .testi-readmore { display: none; }
}

/* ══════════════════════════════════════════════════
   REDES SOCIALES — Horizontal list on mobile/tablet
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .social-follow-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
  }
  .social-follow-card {
    flex-direction: row;
    align-items: center;
    padding: .85rem 1.2rem;
    gap: 1rem;
    text-align: left;
  }
  .social-follow-card::before { display: none; }
  .social-follow-icon { flex-shrink: 0; }
  .social-follow-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
  }
  .social-follow-name  { font-size: .6rem; letter-spacing: .15em; white-space: nowrap; }
  .social-follow-handle{ font-size: .88rem; font-weight: 500; order: -1; flex: 1; }
  .social-follow-count { font-size: 1.1rem; line-height: 1; }
  .social-follow-btn {
    flex-shrink: 0;
    font-size: .62rem;
    padding: .28rem .8rem;
    white-space: nowrap;
  }
}

/* ══════════════════════════════════════════════════
   SERVICIOS — Desktop: grid normal / Mobile: accordion
   ══════════════════════════════════════════════════ */

/* Desktop: show grid, hide accordion */
@media (min-width: 1025px) {
  .svc-grid--desktop { display: grid; }
  .svc-accordion     { display: none; }
}

/* Mobile/Tablet: hide grid, show accordion */
@media (max-width: 1024px) {
  .svc-grid--desktop { display: none; }
  .svc-accordion {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2rem;
  }
}

/* Accordion item */
.svc-acc-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--dark2);
}
.svc-acc-item.open {
  border-color: var(--gold-d);
}

/* Accordion header — always visible, acts as button */
.svc-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.svc-acc-header:active { background: rgba(255,255,255,.04); }

.svc-acc-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: rgba(212,168,67,.5);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
}
.svc-acc-item.open .svc-acc-num { color: var(--gold); }

.svc-acc-name {
  flex: 1;
  font-size: .92rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
}

.svc-acc-chevron {
  flex-shrink: 0;
  color: var(--gray);
  font-size: .7rem;
  transition: transform .3s;
  display: inline-block;
}
.svc-acc-item.open .svc-acc-chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Accordion body — collapsed by default */
.svc-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
  padding: 0 1.1rem;
}
.svc-acc-item.open .svc-acc-body {
  max-height: 180px;
  padding-bottom: 1rem;
}

.svc-acc-desc {
  font-size: .83rem;
  color: var(--gray-l);
  line-height: 1.75;
  margin-bottom: .7rem;
}
.svc-acc-tag {
  display: inline-block;
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-d);
  border: 1px solid var(--gold-d);
  padding: .22rem .65rem;
  border-radius: 2px;
}

/* svc desktop handled by svc-grid--desktop */
/* Mobile testi-v: compact text layout to avoid word wrap */
@media (max-width: 767px) {
  .testi-v-name { font-size: .78rem; }
  .testi-v-co   { font-size: .67rem; }
  .testi-v-body { padding: .7rem .9rem; }
  .testi-v-snippet { font-size: .73rem; line-height: 1.55; }
  .testi-v-auth { gap: .45rem; }
  /* Tighten written testi cards */
  .testi-w-card { padding: 1.1rem; }
  .testi-qm { font-size: 2rem; margin-bottom: .5rem; }
  .testi-q  { font-size: .78rem; line-height: 1.65; }
  .testi-name { font-size: .78rem; }
  .testi-co   { font-size: .68rem; }
  .testi-av   { width: 28px; height: 28px; font-size: .6rem; }
  .testi-av-img { width: 28px; height: 28px; }
}
