/* =====================================================
   EDRA PLUGIN — Estilos principales
   ===================================================== */

:root {
  --edra-white:      #ffffff;
  --edra-off-white:  #f5f3ef;
  --edra-stone:      #e8e4dc;
  --edra-dark:       #0d1a0f;
  --edra-forest:     #1a3020;
  --edra-teal:       #00a896;
  --edra-teal-light: #4ecdc4;
  --edra-text:       #1a1a1a;
  --edra-muted:      #6b7280;
  --font-display:    'DM Serif Display', Georgia, serif;
  --font-body:       'DM Sans', sans-serif;
}

/* ── Base ── */
.edra-section,
.edra-hero,
.edra-nosotros,
.edra-pilares,
.edra-soluciones,
.edra-equipo,
.edra-contacto {
  font-family: var(--font-body);
  box-sizing: border-box;
}

.edra-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--edra-teal);
  margin-bottom: 12px;
  display: block;
}
.edra-label--light { color: var(--edra-teal-light); }

.edra-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.12;
  color: var(--edra-dark);
  margin: 0 0 24px;
}
.edra-title em { font-style: italic; color: var(--edra-teal); }
.edra-title--light { color: #fff; }
.edra-title--light em { color: var(--edra-teal-light); }

.edra-body {
  font-size: 17px;
  line-height: 1.75;
  color: #3a4a3c;
  margin-bottom: 16px;
}

.edra-btn {
  display: inline-block;
  background: var(--edra-teal);
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .3s, transform .2s;
  border: none;
  cursor: pointer;
}
.edra-btn:hover {
  background: var(--edra-teal-light);
  transform: translateY(-1px);
  color: #fff !important;
}

/* ── Reveal on scroll ── */
.edra-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
}
.edra-reveal.edra-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.edra-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 60px 80px;
  background-color: var(--edra-dark);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.edra-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,26,15,.88) 40%, rgba(13,26,15,.3) 100%);
  pointer-events: none;
}

.edra-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.edra-hero__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--edra-teal-light);
  margin-bottom: 20px;
}

.edra-hero__titulo {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
}
.edra-hero__titulo em { color: var(--edra-teal-light); font-style: italic; }

.edra-hero__desc {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  margin-bottom: 40px;
}

.edra-hero__scroll {
  position: absolute;
  bottom: 36px; right: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.4);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.edra-hero__scroll-line {
  width: 40px; height: 1px;
  background: rgba(255,255,255,.25);
  position: relative;
  overflow: hidden;
}
.edra-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--edra-teal-light);
  animation: edraLineSlide 2s 1.5s infinite;
}
@keyframes edraLineSlide {
  0%   { left: -100%; }
  100% { left:  100%; }
}

/* ─────────────────────────────────────
   NOSOTROS
───────────────────────────────────── */
.edra-nosotros {
  background: var(--edra-off-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 120px 60px;
}
.edra-nosotros__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.edra-nosotros__right { position: relative; }
.edra-nosotros__tag {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--edra-teal);
  color: #fff;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.4;
  max-width: 220px;
}

/* ─────────────────────────────────────
   PILARES
───────────────────────────────────── */
.edra-pilares {
  background: #fff;
  padding: 120px 60px;
}
.edra-pilares__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  gap: 40px;
}
.edra-pilares__intro {
  font-size: 15px;
  color: var(--edra-muted);
  max-width: 320px;
  line-height: 1.65;
}
.edra-pilares__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.edra-pilar-card {
  background: var(--edra-off-white);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background .3s;
}
.edra-pilar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--edra-teal);
  transition: height .4s;
}
.edra-pilar-card:hover { background: var(--edra-stone); }
.edra-pilar-card:hover::before { height: 100%; }

.edra-pilar-card__num {
  font-family: var(--font-display);
  font-size: 64px;
  color: rgba(0,168,150,.12);
  line-height: 1;
  margin-bottom: 24px;
  transition: color .3s;
}
.edra-pilar-card:hover .edra-pilar-card__num { color: rgba(0,168,150,.2); }
.edra-pilar-card__nombre {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--edra-teal);
  margin-bottom: 12px;
}
.edra-pilar-card__titulo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--edra-dark);
  margin-bottom: 14px;
  line-height: 1.2;
}
.edra-pilar-card__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--edra-muted);
}

/* ─────────────────────────────────────
   SOLUCIONES
───────────────────────────────────── */
.edra-soluciones {
  background: var(--edra-dark);
  padding: 120px 60px;
}
.edra-soluciones__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 64px;
}
.edra-soluciones__intro {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}
.edra-soluciones__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.06);
}

.edra-sol-card {
  background: var(--edra-dark);
  padding: 48px 36px;
  transition: background .3s;
}
.edra-sol-card:hover { background: #162218; }
.edra-sol-card__icon {
  width: 44px; height: 44px;
  margin-bottom: 28px;
  opacity: .7;
}
.edra-sol-card__icon svg { width: 44px; height: 44px; }
.edra-sol-card__titulo {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  margin-bottom: 14px;
}
.edra-sol-card__desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,.5);
}
.edra-sol-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--edra-teal-light);
  text-decoration: none;
  transition: gap .2s;
}
.edra-sol-card__link:hover { gap: 14px; }

/* ─────────────────────────────────────
   EQUIPO
───────────────────────────────────── */
.edra-equipo {
  background: #fff;
  padding: 120px 60px;
}
.edra-equipo__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}
.edra-equipo__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.edra-team-card__photo-wrap {
  overflow: hidden;
  position: relative;
}
.edra-team-card__photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--edra-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.edra-team-card:hover .edra-team-card__photo-wrap::after { transform: scaleX(1); }
.edra-team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: grayscale(25%);
  transition: filter .4s, transform .4s;
}
.edra-team-card:hover .edra-team-card__photo {
  filter: grayscale(0%);
  transform: scale(1.03);
}
.edra-team-card__photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--edra-stone);
}
.edra-team-card__info { padding: 18px 4px 0; }
.edra-team-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--edra-dark);
  margin-bottom: 4px;
}
.edra-team-card__role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--edra-teal);
  margin-bottom: 10px;
}
.edra-team-card__bio {
  font-size: 13px;
  line-height: 1.65;
  color: var(--edra-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.edra-team-card__linkedin {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--edra-teal);
  text-decoration: none;
  letter-spacing: .08em;
}
.edra-team-card__linkedin:hover { color: var(--edra-teal-light); }

/* ─────────────────────────────────────
   CONTACTO
───────────────────────────────────── */
.edra-contacto {
  background: var(--edra-off-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 120px 60px;
}
.edra-contacto__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--edra-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,168,150,.3);
  padding-bottom: 4px;
  margin-top: 28px;
  transition: border-color .3s;
}
.edra-contacto__email:hover { border-color: var(--edra-teal); }

/* Formulario nativo */
.edra-form { display: flex; flex-direction: column; gap: 16px; }
.edra-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edra-form__field { display: flex; flex-direction: column; gap: 6px; }
.edra-form__field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--edra-muted);
}
.edra-form__field input,
.edra-form__field textarea {
  background: #fff;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 2px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--edra-text);
  outline: none;
  transition: border-color .3s;
  width: 100%;
}
.edra-form__field input:focus,
.edra-form__field textarea:focus { border-color: var(--edra-teal); }
.edra-form__field textarea { resize: vertical; min-height: 120px; }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 1024px) {
  .edra-equipo__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .edra-hero { padding: 0 24px 60px; }
  .edra-nosotros,
  .edra-contacto { grid-template-columns: 1fr; padding: 80px 24px; }
  .edra-pilares,
  .edra-soluciones,
  .edra-equipo { padding: 80px 24px; }
  .edra-pilares__grid,
  .edra-soluciones__grid { grid-template-columns: 1fr 1fr; }
  .edra-equipo__grid { grid-template-columns: 1fr 1fr; }
  .edra-pilares__header,
  .edra-soluciones__header { grid-template-columns: 1fr; gap: 16px; }
  .edra-nosotros__tag { position: static; margin-top: 16px; }
  .edra-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .edra-pilares__grid,
  .edra-soluciones__grid,
  .edra-equipo__grid { grid-template-columns: 1fr; }
}
