/* ============================================================
   Productos AltaMeza — Estilos principales
   ============================================================ */

:root {
  --blue:    #0369a1;
  --blue-dk: #075985;
  --navy2:   #0a2540;
  --cream:   #f5f0e8;
  --cream2:  #ede8dc;
  --light:   #eef5fb;
  --text:    #1a2530;
  --muted:   #6b7c8a;
  --gold:    #f5a623;
  --o50:     #f0f9ff;
  --o600:    #0284c7;
  --o700:    #0369a1;
  --o800:    #075985;
  --o950:    #082f49;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 68px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, box-shadow 0.4s;
}
nav.solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
}
nav.transparent {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(4px);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 600;
  transition: color 0.3s;
}
nav.solid     .nav-logo-text { color: var(--text); }
nav.transparent .nav-logo-text { color: #fff; }

.nav-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.15rem; list-style: none;
}
.nav-center a {
  color: var(--muted); text-decoration: none;
  font-size: 0.86rem; font-weight: 500;
  padding: 0.4rem 0.9rem; border-radius: 30px;
  transition: all 0.25s; white-space: nowrap;
}
nav.solid     .nav-center a { color: var(--muted); }
nav.transparent .nav-center a { color: rgba(255,255,255,0.82); }
.nav-center a:hover { background: rgba(3,105,161,0.1); color: var(--o700); }
nav.transparent .nav-center a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-center a.active { color: var(--o700); background: var(--o50); }
nav.transparent .nav-center a.active { color: #fff; background: rgba(255,255,255,0.18); }

.nav-cta {
  text-decoration: none; font-size: 0.87rem; font-weight: 600;
  padding: 0.5rem 1.4rem; border-radius: 30px;
  transition: all 0.3s; white-space: nowrap;
}
nav.solid     .nav-cta { background: var(--o700); color: #fff; }
nav.solid     .nav-cta:hover { background: var(--o800); }
nav.transparent .nav-cta { background: #fff; color: var(--o700); }
nav.transparent .nav-cta:hover { background: rgba(255,255,255,0.88); }

.hamburger {
  display: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}
nav.solid       .hamburger { color: var(--text); }
nav.transparent .hamburger { color: #fff; }
.hamburger:hover { background: rgba(0,0,0,0.06); }

.mob {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 0.75rem 1.5rem 1.25rem;
  flex-direction: column; z-index: 999;
}
.mob a {
  color: var(--muted); text-decoration: none;
  font-size: 0.95rem; padding: 0.55rem 0.75rem;
  border-radius: 10px; transition: all 0.2s;
}
.mob a:hover { color: var(--o700); background: var(--o50); }
.mob.open { display: flex; }

/* ── FADE-UP ON SCROLL ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fu.visible { opacity: 1; transform: translateY(0); }

/* ── HERO ── */
#inicio {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding-top: 68px; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  background-image: url('../img/img_fondo_mar.jpg');
  background-image: image-set(
    url('../img/img_fondo_mar.webp') type('image/webp'),
    url('../img/img_fondo_mar.jpg') type('image/jpeg')
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.22), rgba(0,0,0,0.5));
}
.hero-body {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem; max-width: 820px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3); color: #fff;
  padding: 0.5rem 1.25rem; border-radius: 30px;
  font-size: 0.87rem; font-weight: 500; margin-bottom: 2rem;
}
.h-stars { color: var(--gold); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.8rem, 10vw, 7.5rem);
  font-weight: 600; color: #fff; line-height: 1; margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; font-weight: 400; }
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem; line-height: 1.7; margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-w {
  background: #fff; color: var(--text);
  padding: 0.85rem 2rem; border-radius: 30px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-w:hover { background: var(--cream); }
.btn-ghost {
  background: rgba(255,255,255,0.13); backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.5); color: #fff;
  padding: 0.85rem 2rem; border-radius: 30px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: all 0.3s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.hero-down {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; text-align: center; color: rgba(255,255,255,0.6);
  font-size: 0.8rem; display: flex; flex-direction: column;
  align-items: center; gap: 0.3rem;
}
.hero-down i { font-size: 1.1rem; animation: bounce 1.6s infinite; }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── SECTIONS ── */
section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.s-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--o600); margin-bottom: 1.2rem;
}
.s-label::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: var(--o600);
}
.s-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; color: var(--text); line-height: 1.1;
}
.s-title em { font-style: italic; color: var(--o600); }

/* ── NOSOTROS ── */
#nosotros { background: var(--cream); }
.nos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.nos-sub {
  color: var(--muted); font-size: 0.93rem; line-height: 1.8;
  margin-top: 1rem; max-width: 460px;
  text-align: justify;
}
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.sc2 { border-radius: 20px; padding: 2rem; position: relative; overflow: hidden; }
.sc2.blue { background: var(--o700); color: #fff; }
.sc2.sand { background: var(--cream2); color: var(--text); }
.sc2-arrow {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: rgba(255,255,255,0.7);
}
.sc2.sand .sc2-arrow { border-color: rgba(0,0,0,0.15); color: var(--muted); }
.sc2-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 700; line-height: 1; margin-bottom: 0.4rem;
}
.sc2-num sup { font-size: 1.4rem; }
.sc2-lbl { font-size: 0.85rem; font-weight: 600; }
.sc2-desc { font-size: 0.79rem; opacity: 0.72; line-height: 1.5; margin-top: 0.4rem; }
.sc2.dark { background: #0a1f30; color: #fff; }
.sc2.white { background: #fff; color: var(--text); border: 1px solid var(--cream2); }
.sc2.white .sc2-arrow { border-color: rgba(0,0,0,0.12); color: var(--muted); }
.sc2.white .sc2-num { color: var(--o700); }

.nos-vals {
  display: grid; grid-template-columns: repeat(4,1fr);
  margin-top: 3.5rem;
}
.nv-card { padding: 2rem 1.75rem; }
.nv-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--o50); display: flex; align-items: center;
  justify-content: center; margin-bottom: 0.85rem;
}
.nv-icon i { color: var(--o600); font-size: 1.1rem; }
.nv-card h4 { font-weight: 600; font-size: 0.92rem; color: var(--text); margin-bottom: 0.25rem; }
.nv-card p  { color: #9ca3af; font-size: 0.82rem; line-height: 1.5; }

/* ── PRODUCTOS ── */
#productos { background: #fff; }
.prod-tabs2 {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 1.75rem; margin-bottom: 2rem;
}
.tab2 {
  padding: 0.48rem 1.2rem; border-radius: 30px;
  border: 1.5px solid #e5e7eb; background: #f3f4f6;
  color: var(--muted); font-size: 0.87rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.tab2.active  { background: var(--o700); border-color: var(--o700); color: #fff; }
.tab2:hover:not(.active) { background: #e5e7eb; color: var(--text); }

.pg { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.pc2 {
  border-radius: 14px; overflow: hidden; cursor: pointer;
  background: #fff; transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0; transform: translateY(24px);
}
.pc2.show {
  opacity: 1 !important; transform: translateY(0) !important;
  transition: opacity 0.42s ease, transform 0.42s ease;
}
.pc2.anim-out {
  opacity: 0 !important; transform: translateY(24px) !important;
  transition: none !important;
}
.pc2:hover { transform: translateY(-4px) !important; box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.pc2-img {
  aspect-ratio: 1; overflow: hidden;
  background: #f2f2f2; display: flex; align-items: center; justify-content: center;
}
.pc2-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pc2:hover .pc2-img img { transform: scale(1.06); }
.pc2-info {
  padding: 0.85rem 0.9rem; background: var(--cream);
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 0.5rem;
}
.pc2-info-left h3 { font-weight: 600; font-size: 0.88rem; color: var(--text); margin-bottom: 0.15rem; }
.pc2-info-left p  { color: var(--muted); font-size: 0.75rem; }

/* ── SERVICIOS ── */
#servicios { background: var(--light); }
.serv-top {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: end; margin-bottom: 3rem;
}
.serv-right { color: var(--muted); font-size: 0.93rem; line-height: 1.8; text-align: right; }
.serv-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.svc {
  border-radius: 18px; overflow: hidden;
  position: relative; aspect-ratio: 3/4; cursor: pointer;
}
.svc-bg { position: absolute; inset: 0; overflow: hidden; }
.svc-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.svc:hover .svc-bg img { transform: scale(1.08); }
.svc-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.08) 55%);
}
.svc-badge {
  position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2;
  background: #fff; color: var(--text);
  font-size: 0.73rem; font-weight: 600;
  padding: 0.28rem 0.75rem; border-radius: 20px;
}
.svc-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 1.4rem 1.2rem; color: #fff;
}
.svc-content h3 { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.35rem; }
.svc-content p  { font-size: 0.77rem; opacity: 0.8; line-height: 1.5; }

/* ── OPINIONES ── */
#opiniones { background: var(--cream); padding: 6rem 2rem; }
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.tc2 {
  background: #fff; border-radius: 16px; padding: 1.75rem;
  display: flex; flex-direction: column; transition: box-shadow 0.3s;
}
.tc2:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); }
.tc2-stars { color: var(--gold); font-size: 0.87rem; letter-spacing: 2px; margin-bottom: 0.7rem; flex-shrink: 0; }
.tc2 h3    { font-weight: 700; font-size: 0.93rem; color: var(--text); margin-bottom: 0.55rem; flex-shrink: 0; }
.tc2-body  { color: var(--muted); font-size: 0.86rem; line-height: 1.7; flex: 1; }
.tc2-auth  { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; flex-shrink: 0; }
.tc2-av    { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.tc2-av img { width: 100%; height: 100%; object-fit: cover; }
.tc2-name  { font-weight: 600; font-size: 0.87rem; color: var(--text); }
.tc2-loc   { color: var(--muted); font-size: 0.77rem; }

/* ── REDES ── */
#redes { background: #fff; padding: 5rem 2rem; }
.redes-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.redes-icons {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; margin-top: 2.5rem;
}
.red-icon-btn {
  width: 72px; height: 72px; border-radius: 16px; background: #f8f4ee;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.3rem;
  text-decoration: none; color: var(--text); transition: all 0.3s;
}
.red-icon-btn i    { font-size: 1.75rem; }
.red-icon-btn span { font-size: 0.68rem; font-weight: 500; color: #9ca3af; }
.red-icon-btn.fb:hover { background: rgba(37,99,235,0.08);   color: #2563eb; }
.red-icon-btn.ig:hover { background: rgba(219,39,119,0.08);  color: #db2777; }
.red-icon-btn.wa:hover { background: rgba(22,163,74,0.08);   color: #16a34a; }

/* ── CONTACTO ── */
#contacto { background: var(--o950); padding: 6rem 2rem; }
.co-head   { text-align: center; margin-bottom: 3rem; }
.co-label  { color: #38bdf8; font-size: 0.73rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.co-title  { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem,4vw,3.5rem); font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.co-sub    { color: rgba(186,230,253,0.6); font-size: 0.93rem; }

/* Location grid */
.loc-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.loc-col   { display: flex; flex-direction: column; }
.loc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
/* Equal height for direction/schedule cards across both locations */
.loc-ic {
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.loc-cards .ic2 { height: 160px; display: flex; flex-direction: column; box-sizing: border-box; }

.ic2 {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 1.4rem;
}
.ic2-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(12,74,110,0.8);
  display: flex; align-items: center; justify-content: center;
  color: #7dd3fc; font-size: 1rem; margin-bottom: 0.85rem;
}
.ic2 h4 { color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.ic2 p  { color: rgba(186,230,253,0.55); font-size: 0.8rem; line-height: 1.65; }

/* Info cards row */
.info-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.info-row .ic2 { display: flex; flex-direction: column; min-height: 170px; }

/* Prevent text overflow in all ic2 cards */
.ic2 p, .ic2 a { word-break: break-word; overflow-wrap: anywhere; }

.cbtn-row { display: flex; gap: 0.85rem; margin-bottom: 1rem; }
.btn-tel2 {
  display: flex; align-items: center; gap: 0.75rem;
  border-radius: 12px; padding: 0.85rem 1.25rem;
  text-decoration: none; color: #fff;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s; flex: 1;
}
.btn-tel2:hover { background: rgba(255,255,255,0.18); }
.btn-tel2 i { color: #7dd3fc; font-size: 1.15rem; flex-shrink: 0; }
.btn-tel2 .btn-label p:first-child { font-size: 0.72rem; color: #7dd3fc; margin-bottom: 0.1rem; }
.btn-tel2 .btn-label p:last-child  { font-size: 0.88rem; font-weight: 600; }
.btn-wa2 {
  display: flex; align-items: center; gap: 0.75rem;
  border-radius: 12px; padding: 0.85rem 1.25rem;
  text-decoration: none; color: #fff;
  background: rgba(22,163,74,0.2);
  border: 1px solid rgba(22,163,74,0.25);
  transition: all 0.3s; flex: 1;
}
.btn-wa2:hover { background: rgba(22,163,74,0.32); }
.btn-wa2 i { color: #4ade80; font-size: 1.15rem; flex-shrink: 0; }
.btn-wa2 .btn-label p:first-child { font-size: 0.72rem; color: #4ade80; margin-bottom: 0.1rem; }
.btn-wa2 .btn-label p:last-child  { font-size: 0.88rem; font-weight: 600; }

.map-box { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.map-box iframe { width: 100%; height: 220px; border: 0; display: block; }

/* ── LEGAL MODAL ── */
.legal-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  overflow-y: auto;
}
.legal-modal.open { display: block; }
.legal-inner {
  background: #fff; min-height: 100vh; max-width: 960px;
  margin: 0 auto; padding: 6rem 3rem 4rem;
}
.legal-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2001;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  height: 64px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.legal-close {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.08); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text); transition: background 0.2s;
}
.legal-close:hover { background: rgba(0,0,0,0.15); }
.legal-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #f5f0e8; }
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.65rem; }
.legal-section p  { color: var(--muted); font-size: 0.93rem; line-height: 1.85; }
.legal-section ul {
  color: var(--muted); font-size: 0.93rem; line-height: 1.85;
  padding-left: 1.5rem; margin: 0.75rem 0;
}

/* ── FOOTER ── */
footer {
  background: #071829; color: rgba(255,255,255,0.38);
  padding: 1.75rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; cursor: pointer; }
footer a:hover { color: #38bdf8; }
.f-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── WA FLOAT ── */
.wa-f {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all 0.3s;
}
.wa-f:hover { transform: scale(1.1); }

/* ── RESPONSIVE ── */


/* ── NOSOTROS: LAYOUT FUNDADOR ── */
.nos-founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* Foto izquierda */
.nos-founder-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.nos-founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
  display: block;
}
.nos-founder-photo:hover img { transform: scale(1.04); }

/* Overlay de nombre sobre la foto */
.nos-founder-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,47,73,0.92) 0%, transparent 100%);
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nos-founder-overlay-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.nos-founder-overlay-sub {
  font-size: 0.8rem;
  color: rgba(186,230,253,0.8);
  font-weight: 400;
}

/* Columna derecha */
.nos-founder-content {
  display: flex;
  flex-direction: column;
  justify-content: center;      /* centra verticalmente el bloque de texto */
  align-self: stretch;          /* ocupa toda la altura de la foto */
  gap: 0;                       /* gap controlado por margin de párrafos */
}

/* Cita destacada */
.nos-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin: 0 0 1.75rem 0;
  border-left: 4px solid var(--o600);
  padding-left: 1.25rem;
  font-style: italic;
}

.nos-founder-text {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  text-align: justify;
  /* NO flex — plain block paragraph */
}
.nos-founder-text:last-child { margin-bottom: 0; }

/* Firma */
.nos-founder-sig {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream2);
}
.nos-founder-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--o700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.nos-founder-sig-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.nos-founder-sig-role {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .pg           { grid-template-columns: repeat(3,1fr); }
  .serv-cards   { grid-template-columns: repeat(2,1fr); }
  .nos-vals     { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .nav-center              { display: none; }
  .hamburger               { display: flex; }
  .nos-grid                { grid-template-columns: 1fr; gap: 2.5rem; }
  .nos-founder-grid        { grid-template-columns: 1fr; gap: 2rem; }
  .nos-founder-photo       { aspect-ratio: 4 / 3; max-height: 420px; }
  .nos-quote               { font-size: 1.25rem; }
  .serv-top                { grid-template-columns: 1fr; }
  .serv-right              { text-align: left; }
  /* Contacto: ubicaciones en columna única en tablet */
  .loc-grid                { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Info cards: 2 columnas en tablet */
  .info-row                { grid-template-columns: repeat(2,1fr); }
  .info-row .ic2           { min-height: 0; }
  .test-grid               { grid-template-columns: 1fr 1fr; }
  section                  { padding: 4rem 1rem; }
  .container               { width: 100%; overflow-x: hidden; }
  .legal-inner             { padding: 5rem 1.5rem 3rem; }
}

@media (max-width: 640px) {
  /* Grid ajustes */
  .pg                      { grid-template-columns: repeat(2,1fr); }
  .serv-cards              { grid-template-columns: 1fr 1fr; }
  .stat-grid               { grid-template-columns: 1fr 1fr; }
  .nos-vals                { grid-template-columns: repeat(2,1fr); }

  /* General */
  .stat-grid               { grid-template-columns: repeat(2,1fr); }
  section                  { padding: 3.5rem 1rem; }
  .container               { width: 100%; overflow-x: hidden; }

  /* Hero */
  .hero-btns               { flex-direction: column; align-items: center; }

  /* Contacto fichas de ubicación:
     - Las tarjetas dirección/horario ocupan todo el ancho (1 columna)
       para que sean simétricas y el contenido no se corte */
  .loc-cards               { grid-template-columns: 1fr 1fr; }
  .loc-cards .ic2          { height: auto; min-height: 130px; }

  /* Botones tel/wa: fila completa cada uno */
  .cbtn-row                { flex-direction: column; }

  /* Info row: 2 columnas en móvil, sin desbordamiento */
  .info-row                { grid-template-columns: 1fr 1fr; gap: 0.6rem; width: 100%; }
  .info-row .ic2           { min-height: 0; padding: 1rem; min-width: 0; overflow: hidden; }
  .info-row .ic2 h4        { font-size: 0.8rem; }
  .info-row .ic2 p,
  .info-row .ic2 a         { font-size: 0.73rem; word-break: break-word; overflow-wrap: anywhere; }

  /* Footer */
  footer                   { flex-direction: column; text-align: center; }
  .f-links                 { justify-content: center; }

  /* Opiniones: 1 columna en móvil para que se lean bien */
  .test-grid               { grid-template-columns: 1fr; }
}
