/* ═══════════════════════════════════════
   U'CARE — NOSOTROS PAGE
   Requires: styles.css (base variables, nav, footer, modals)
════════════════════════════════════════ */

/* ─── BACK BUTTON ─── */
.abt-back {
  position: fixed;
  top: 156px;
  left: max(16px, calc(50vw - 720px));
  z-index: 99;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 8px 10px;
  font-size: 13px;
  font-weight: 400;
  font-family: inherit;
  color: var(--burgundy);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(123,25,30,0.14);
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(44,24,15,0.08);
  transition: color 0.18s, background 0.18s, transform 0.18s;
}
.abt-back:hover {
  color: var(--burgundy-deep);
  background: rgba(255,255,255,0.98);
  transform: translateX(-2px);
}

/* ─── NAV ACTIVE LINK ─── */
.nav-active {
  color: var(--burgundy) !important;
  font-weight: 500 !important;
}

/* ─── HERO ─── */
.abt-hero {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cream-soft);
}
/* Tocar puerta.png como fondo sutil */
.abt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/img/Tocar puerta.png') center 40% / cover no-repeat;
  opacity: 0.14;
  z-index: 0;
}
/* velo crema sobre la imagen */
.abt-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 60%, rgba(253,246,236,0.55) 0%, var(--cream-soft) 75%);
  z-index: 1;
  pointer-events: none;
}

.abt-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 140px max(48px, calc((100% - 900px) / 2 + 48px)) 10vh;
  width: 100%;
}

.abt-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 20px;
}

.abt-title {
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: min(100%, 720px);
}
.abt-title em {
  font-style: normal;
  font-weight: 700;
  color: var(--burgundy);
}

.abt-sub {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.abt-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(44,24,15,0.35);
  text-decoration: none;
  transition: color 0.18s;
  width: fit-content;
}
.abt-scroll-hint:hover { color: var(--burgundy); }
.abt-scroll-hint svg { transition: transform 0.3s ease; }
.abt-scroll-hint:hover svg { transform: translateY(4px); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1),
              transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

/* ─── SHARED SECTION STYLES ─── */
.abt-section-title {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.abt-section-header {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.abt-section-header .eyebrow {
  margin-bottom: 12px;
}

/* ─── ORIGEN ─── */
.abt-origen {
  background: var(--white);
  padding: 112px max(80px, calc((100% - 1360px) / 2 + 80px));
}

.abt-origen-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

.abt-origen-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.abt-origen-body p {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
}
.abt-origen-body p strong {
  font-weight: 600;
  color: var(--text-dark);
}

.abt-blockquote {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  color: var(--burgundy-deep);
  line-height: 1.5;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 16px;
}
.abt-blockquote em { font-style: normal; color: var(--burgundy); }
.abt-cite {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  padding-left: 24px;
  letter-spacing: 0.02em;
}

/* ─── VALORES ─── */
.abt-valores {
  background: var(--gold-pale);
  padding: 112px max(80px, calc((100% - 1360px) / 2 + 80px));
}

.abt-valores-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.abt-valores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.abt-valor {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid rgba(196,131,10,0.1);
  box-shadow: 0 4px 24px rgba(44,24,15,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.abt-valor:hover {
  box-shadow: 0 8px 40px rgba(44,24,15,0.12);
  transform: translateY(-2px);
}

.abt-valor-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(123,25,30,0.08);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.abt-valor-icon svg { width: 22px; height: 22px; }

.abt-valor-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.abt-valor-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ─── EQUIPO ─── */
.abt-equipo {
  background: #fee3af;
  padding: 112px max(80px, calc((100% - 1360px) / 2 + 80px));
}

.abt-equipo-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.abt-equipo-big-title {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 0;
}

.abt-45 {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(
    -45deg,
    #e02030,
    #a01020,
    #e85030,
    #c02828,
    #f05545,
    #a01020
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hero-gradient 6s ease-in-out infinite;
}

.abt-equipo-subtitle {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 300;
  color: var(--text-mid);
  text-align: center;
  margin: 36px 0 44px;
  letter-spacing: 0.01em;
}

.abt-section-lead {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 0;
}

.abt-equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 20px;
  margin-bottom: 48px;
  justify-content: center;
}

.abt-founder-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(196,131,10,0.12);
  box-shadow: 0 4px 24px rgba(44,24,15,0.07);
  transition: transform 0.22s, box-shadow 0.22s;
}
.abt-founder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44,24,15,0.13);
}

.abt-founder-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream-soft);
  border-bottom: 3px solid rgba(196,131,10,0.25);
}
/* Per-founder accent colors */
.abt-equipo-grid .abt-founder-card:nth-child(1) .abt-founder-photo-wrap { border-color: #4A82BA; }
.abt-equipo-grid .abt-founder-card:nth-child(2) .abt-founder-photo-wrap { border-color: #7B1C1C; }
.abt-equipo-grid .abt-founder-card:nth-child(3) .abt-founder-photo-wrap { border-color: #9B6200; }
.abt-founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.4s ease;
}
/* Head alignment per photo */
.abt-equipo-grid .abt-founder-card:nth-child(1) .abt-founder-photo { object-position: center 20%; }
.abt-equipo-grid .abt-founder-card:nth-child(2) .abt-founder-photo { object-position: center 14%; }
.abt-equipo-grid .abt-founder-card:nth-child(3) .abt-founder-photo { object-position: center 16%; }
.abt-founder-card:hover .abt-founder-photo { transform: scale(1.04); }

.abt-founder-body {
  padding: 20px 20px 24px;
}
.abt-founder-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--burgundy-deep);
  margin-bottom: 3px;
}
.abt-founder-role {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.abt-founder-bio {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
}

.abt-equipo-group {
  text-align: center;
  margin-top: 16px;
}
.abt-equipo-group img {
  width: 100%;
  max-width: 680px;
  border-radius: 20px;
  display: block;
  margin: 0 auto 12px;
  box-shadow: 0 12px 48px rgba(44,24,15,0.14);
}
.abt-equipo-group p {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── VISIÓN ─── */
.abt-vision {
  background: var(--dark);
  padding: 112px max(80px, calc((100% - 1360px) / 2 + 80px));
  position: relative;
  overflow: hidden;
}
.abt-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 80%, rgba(123,25,30,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.abt-vision-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.abt-vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.abt-vision-item {
  border-top: 1px solid rgba(245,200,66,0.25);
  padding-top: 24px;
}

.abt-vision-num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  opacity: 0.6;
  margin-bottom: 14px;
}

.abt-vision-title {
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.abt-vision-desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
}

/* ─── CTA ─── */
.abt-cta {
  background: var(--cream-soft);
  padding: 96px max(80px, calc((100% - 1360px) / 2 + 80px));
  text-align: center;
}

.abt-cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.abt-cta-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.abt-cta-title {
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 20px;
}

.abt-cta-sub {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
}

.abt-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.abt-write-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.abt-write-btn.hidden { display: none; }

.abt-write-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: min(420px, 90vw);
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows 0.38s cubic-bezier(0.16,1,0.3,1),
              opacity 0.28s ease,
              margin-top 0.32s cubic-bezier(0.16,1,0.3,1);
}
.abt-write-panel.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 14px;
}
.abt-write-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.abt-write-ta {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid rgba(123,25,30,0.18);
  border-radius: var(--radius-md);
  outline: none;
  resize: none;
  line-height: 1.6;
  transition: border-color 0.18s;
}
.abt-write-ta:focus { border-color: var(--burgundy); }
.abt-write-ta::placeholder { color: var(--text-light); font-weight: 300; }

.abt-write-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.abt-write-send {
  background: var(--burgundy);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s;
}
.abt-write-send:hover { background: var(--burgundy-mid); }
.abt-write-send:disabled { opacity: 0.6; cursor: not-allowed; }

.abt-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(123,25,30,0.35);
  color: var(--burgundy);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.abt-btn-ghost:hover {
  background: rgba(123,25,30,0.06);
  border-color: var(--burgundy);
}

/* ─── RESPONSIVE ─── */

/* 1024px — tablet / small laptop */
@media (max-width: 1024px) {
  .abt-hero-content {
    padding: 120px 40px 10vh;
  }

  .abt-origen-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .abt-equipo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .abt-vision-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* 768px — mobile */
@media (max-width: 768px) {
  .abt-hero-content {
    padding: 100px 24px 8vh;
  }
  .abt-title { max-width: 100%; }
  .abt-sub br { display: none; }

  .abt-origen {
    padding: 72px 24px;
  }
  .abt-origen-inner { gap: 36px; }
  .abt-blockquote { font-size: clamp(16px, 4.5vw, 20px); }

  .abt-valores {
    padding: 72px 24px;
  }
  .abt-valores-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .abt-valor { padding: 28px 24px; }

  .abt-equipo {
    padding: 72px 24px;
  }
  .abt-equipo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .abt-founder-photo-wrap { aspect-ratio: 4 / 3; }

  .abt-vision {
    padding: 72px 24px;
  }
  .abt-vision-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .abt-cta {
    padding: 72px 24px;
  }

  .abt-section-header { margin-bottom: 36px; }
  .abt-section-title { margin-bottom: 12px; }
}

/* 480px — small phones */
@media (max-width: 480px) {
  .abt-hero-content { padding: 90px 20px 8vh; }
  .abt-origen,
  .abt-valores,
  .abt-equipo,
  .abt-vision,
  .abt-cta { padding-left: 20px; padding-right: 20px; }
  .abt-equipo-grid { grid-template-columns: 1fr; }
  .abt-founder-photo-wrap { aspect-ratio: 1 / 1; }
}

@media (max-width: 768px) {
  .abt-back {
    top: 80px;
    left: 16px;
  }
}
