/* ===================================================
   CHIRINO CUSTOM — Página Nosotros
   =================================================== */

/* ---- HERO ---- */
.nos-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}
.nos-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.nos-hero:hover .nos-hero-bg { transform: scale(1); }

.nos-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,10,10,0.85) 0%,
    rgba(10,10,10,0.5)  45%,
    rgba(10,10,10,0.82) 100%
  );
}
.nos-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 2rem);
}
.nos-hero-badge { margin-bottom: 1.25rem; display: inline-block; }

.nos-hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 1rem;
}
.nos-hero h1 em { font-style: normal; color: var(--color-heading); }
.nos-hero-sub {
  font-size: 1.25rem;
  color: rgba(232,217,176,0.7);
  letter-spacing: 0.02em;
}

/* ---- HISTORIA ---- */
.nos-historia {
  padding: 7rem 0;
  background: var(--color-bg);
}
.nos-historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.nos-foto-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.nos-foto-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.nos-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-muted);
  font-size: 0.875rem;
  min-height: 420px;
}
.nos-foto-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, transparent 100%);
  padding: 2.5rem 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.82rem;
}
.nos-foto-caption svg { width: 14px; height: 14px; color: var(--color-primary); }

/* Historia texto */
.nos-historia-texto h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.nos-historia-texto p {
  color: var(--color-muted);
  line-height: 1.85;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.nos-historia-texto strong { font-weight: 600; }

/* Chips de especialidades */
.nos-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0;
}
.nos-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(42,138,138,0.1);
  border: 1px solid rgba(42,138,138,0.3);
  border-radius: 20px;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 500;
}
.nos-chip svg { width: 13px; height: 13px; }

/* Mini stats */
.nos-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.nos-mini-stat {
  text-align: center;
  padding: 1.1rem 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}
.nos-mini-stat:hover { border-color: var(--color-primary); }
.nos-mini-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-primary);
  line-height: 1;
}
.nos-mini-stat span {
  display: block;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- FOTO 3 FULLWIDTH ---- */
.nos-taller-full {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}
.nos-taller-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.03);
  transition: transform 6s ease;
}
.nos-taller-full:hover .nos-taller-img { transform: scale(1); }
.nos-placeholder-bg { background: var(--color-surface); }

.nos-taller-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.9) 0%,
    rgba(10,10,10,0.3) 60%,
    rgba(10,10,10,0.1) 100%
  );
  display: flex;
  align-items: center;
}
.nos-taller-quote {
  max-width: 520px;
  padding: 2rem 0;
}
.nos-taller-quote blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1rem;
  border: none;
  padding: 0;
  background: none;
}
.nos-taller-quote blockquote em {
  font-style: normal;
  color: var(--color-heading);
}
.nos-taller-quote cite {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-style: normal;
  letter-spacing: 0.06em;
}

/* ---- ESPECIALIDADES ---- */
.nos-especialidades {
  padding: 7rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.nos-esp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.nos-esp-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}
.nos-esp-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.nos-esp-icon {
  width: 52px;
  height: 52px;
  background: rgba(42,138,138,0.12);
  border: 1px solid rgba(42,138,138,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nos-esp-icon svg { width: 24px; height: 24px; color: var(--color-primary); }
.nos-esp-body h3 {
  font-size: 1.35rem;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}
.nos-esp-body p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ---- GALERÍA ---- */
.nos-galeria {
  padding: 7rem 0;
  background: var(--color-bg);
  overflow: hidden;
}
.nos-fotos-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: start;
}
.nos-fotos-col {
  display: grid;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.nos-foto-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
}
.nos-foto-card--tall {
  aspect-ratio: 3/4;
}
.nos-foto-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}
.nos-foto-card--tall img { object-position: center 20%; }
.nos-foto-card:hover img { transform: scale(1.04); }

.nos-foto-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 100%);
  padding: 2.5rem 1.5rem 1.25rem;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.35s ease;
}
.nos-foto-card:hover .nos-foto-card-overlay {
  opacity: 1;
  transform: translateY(0);
}
.nos-foto-card-overlay h3 {
  font-size: 1.2rem;
  color: var(--color-heading);
  margin-bottom: 0.2rem;
}
.nos-foto-card-overlay p {
  color: var(--color-muted);
  font-size: 0.82rem;
  margin: 0;
}

/* ---- RESPONSIVE ---- */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .nos-historia-grid   { grid-template-columns: 1fr; gap: 3rem; }
  .nos-foto-wrap img   { aspect-ratio: 16/9; }
  .nos-esp-grid        { grid-template-columns: 1fr; }
  .nos-fotos-grid      { grid-template-columns: 1fr; }
  .nos-fotos-col       { grid-template-columns: 1fr 1fr; }
  .nos-foto-card--tall { aspect-ratio: 16/9; }
  .nos-taller-full     { height: 50vh; }
  .nos-foto-card-overlay { opacity: 1; transform: none; }
}

/* Mobile grande (≤ 768px) */
@media (max-width: 768px) {
  /* Hero */
  .nos-hero {
    min-height: 100svh;
    padding-bottom: 3.5rem;
    align-items: flex-end;
  }
  .nos-hero h1 {
    font-size: clamp(2.6rem, 11vw, 4rem);
    margin-bottom: 0.75rem;
  }
  .nos-hero-sub       { font-size: 1rem; }
  .nos-hero-badge     { font-size: 0.72rem; margin-bottom: 0.85rem; }

  /* Historia */
  .nos-historia       { padding: 4rem 0; }
  .nos-historia-grid  { gap: 2.25rem; }
  .nos-historia-texto h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .nos-historia-texto p  { font-size: 0.95rem; line-height: 1.75; }

  /* Chips */
  .nos-chips         { gap: 0.4rem; margin: 1.25rem 0; }
  .nos-chip          { font-size: 0.78rem; padding: 0.35rem 0.75rem; }

  /* Mini stats */
  .nos-mini-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  .nos-mini-stat        { padding: 0.85rem 0.25rem; }
  .nos-mini-stat strong { font-size: 1.9rem; }
  .nos-mini-stat span   { font-size: 0.65rem; }

  /* Taller fullwidth */
  .nos-taller-full    { height: 55vw; min-height: 260px; }
  .nos-taller-quote blockquote { font-size: clamp(1.25rem, 5vw, 1.8rem); }
  .nos-taller-overlay {
    background: linear-gradient(
      to right,
      rgba(10,10,10,0.92) 0%,
      rgba(10,10,10,0.6)  70%,
      rgba(10,10,10,0.4)  100%
    );
  }

  /* Especialidades */
  .nos-especialidades { padding: 4rem 0; }
  .nos-esp-card       { padding: 1.35rem; gap: 1rem; }
  .nos-esp-icon       { width: 44px; height: 44px; flex-shrink: 0; }
  .nos-esp-icon svg   { width: 20px; height: 20px; }
  .nos-esp-body h3    { font-size: 1.15rem; }
  .nos-esp-body p     { font-size: 0.88rem; }

  /* Galería */
  .nos-galeria        { padding: 4rem 0; }
  .nos-fotos-col      { grid-template-columns: 1fr 1fr; }
}

/* Mobile pequeño (≤ 480px) */
@media (max-width: 480px) {
  /* Hero */
  .nos-hero           { min-height: 100svh; padding-bottom: 2.5rem; }
  .nos-hero h1        { font-size: clamp(2.2rem, 12vw, 3rem); }
  .nos-hero-sub       { font-size: 0.9rem; }

  /* Historia */
  .nos-historia       { padding: 3rem 0; }
  .nos-foto-wrap img  { aspect-ratio: 4/3; }

  /* Mini stats — una fila de 3, compacto */
  .nos-mini-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .nos-mini-stat        { padding: 0.7rem 0.15rem; }
  .nos-mini-stat strong { font-size: 1.6rem; }
  .nos-mini-stat span   { font-size: 0.6rem; letter-spacing: 0.03em; }

  /* Taller fullwidth */
  .nos-taller-full    { height: auto; min-height: 280px; padding: 3rem 0; }
  .nos-taller-img     { position: absolute; inset: 0; height: 100%; }
  .nos-taller-overlay {
    position: relative;
    background: rgba(10,10,10,0.82);
    padding: 2.5rem 0;
  }
  .nos-taller-quote             { max-width: 100%; padding: 0; }
  .nos-taller-quote blockquote  { font-size: clamp(1.1rem, 6vw, 1.45rem); }
  .nos-taller-quote cite        { font-size: 0.82rem; }

  /* Especialidades */
  .nos-especialidades { padding: 3rem 0; }
  .nos-esp-grid       { gap: 0.75rem; }
  .nos-esp-card       { flex-direction: column; gap: 0.75rem; padding: 1.1rem; }
  .nos-esp-icon       { width: 40px; height: 40px; }

  /* Galería */
  .nos-galeria        { padding: 3rem 0; }
  .nos-fotos-col      { grid-template-columns: 1fr; }
  .nos-foto-card--tall { aspect-ratio: 4/3; }

  /* Caption en foto historia */
  .nos-foto-caption   { font-size: 0.75rem; padding: 1.75rem 1rem 0.85rem; }
}

/* Muy pequeño (≤ 360px) */
@media (max-width: 360px) {
  .nos-hero h1        { font-size: 2rem; }
  .nos-mini-stat strong { font-size: 1.4rem; }
  .nos-chips          { gap: 0.3rem; }
  .nos-chip           { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
}
