/*
Theme Name: Elen's Agencia
Theme URI: https://elens.agency/
Author: Elen's Agencia
Description: Tema personalizado de una sola página para Elen's Agencia.
Version: 1.1.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: elens-agencia
*/

@font-face {
  font-family: "Bacalisties";
  src: url("assets/fonts/bacalisties.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lato Local";
  src: url("assets/fonts/lato-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Abygaer";
  src: url("assets/fonts/abygaer.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --elens-coral: #ed8991;
  --elens-coral-dark: #df747f;
  --elens-blush: #f7eae4;
  --elens-beige: #f3ebe5;
  --elens-paper: #fbfaf9;
  --elens-ink: #242323;
  --elens-muted: #6d6866;
  --elens-white: #fff;
  --elens-radius: 28px;
  --elens-shadow: 0 22px 60px rgba(67, 45, 39, .10);
  --elens-display: "Abygaer", Georgia, serif;
  --elens-body: "Lato Local", "Lato", Arial, sans-serif;
  --elens-script: "Bacalisties", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--elens-ink);
  background: var(--elens-paper);
  font-family: var(--elens-body);
  font-size: 21px;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.elens-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.elens-section { padding: 94px 0; }
.elens-section--white { background: var(--elens-white); }
.elens-kicker {
  margin: 0 0 8px;
  color: var(--elens-ink);
  font-size: calc(.76rem + 5px);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.elens-about .elens-kicker,
.elens-heading .elens-kicker { font-weight: 900; }
.elens-title {
  margin: 0;
  font-family: var(--elens-display);
  font-size: clamp(2.35rem, 5vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .95;
}
.elens-script { color: var(--elens-coral); font-family: var(--elens-script); font-weight: 700; }
.elens-script--hero { color: var(--elens-ink); }
.elens-heading { margin-bottom: 50px; text-align: center; }
.elens-heading .elens-title { font-size: clamp(2.25rem, 4vw, 3.7rem); }
.elens-title--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: .2em;
  row-gap: .08em;
  line-height: 1;
}
.elens-title__main,
.elens-title__caligraphy {
  display: inline-flex;
  height: 1.08em;
  align-items: center;
  white-space: nowrap;
}
.elens-title__caligraphy { line-height: 1; }
.elens-title--split-contact { justify-content: flex-start; }
.elens-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--elens-coral);
  border-radius: 10px;
  background: var(--elens-coral);
  color: var(--elens-white);
  font-size: calc(.78rem + 5px);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.elens-button:hover, .elens-button:focus-visible {
  background: var(--elens-coral-dark);
  border-color: var(--elens-coral-dark);
  transform: translateY(-2px);
}
.elens-button:focus-visible, .nav-toggle:focus-visible, .site-nav a:focus-visible,
.elens-form input:focus-visible, .elens-form textarea:focus-visible {
  outline: 3px solid rgba(237, 137, 145, .35);
  outline-offset: 3px;
}

/* Header */
.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  padding: 18px 0;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-header__actions { display: flex; align-items: center; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--elens-display); font-size: 1.5rem; }
.site-brand img { width: 64px; height: 64px; object-fit: contain; }
.site-nav ul { display: flex; align-items: center; gap: 35px; margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; font-size: calc(.88rem + 5px); font-weight: 600; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--elens-coral); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.language-switcher { display: flex; align-items: center; gap: 7px; padding-left: 20px; border-left: 1px solid rgba(36,35,35,.2); }
.language-switcher a {
  position: relative;
  padding: 5px 2px;
  color: var(--elens-muted);
  font-size: calc(.72rem + 5px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.language-switcher a + a::before { content: "/"; position: absolute; left: -6px; color: rgba(36,35,35,.35); }
.language-switcher a.is-current { color: var(--elens-coral-dark); }
.language-switcher a:hover, .language-switcher a:focus-visible { color: var(--elens-coral-dark); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; border-radius: 50%; background: rgba(255,255,255,.88); color: var(--elens-ink); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; }

/* Hero */
.elens-hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: var(--elens-white);
}
.elens-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, #fff 28%, rgba(255,255,255,.98) 35%, rgba(255,255,255,.86) 43%, rgba(255,255,255,.38) 53%, rgba(255,255,255,0) 66%);
  pointer-events: none;
}
.elens-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 40%;
  overflow: hidden;
}
.elens-hero__media img {
  width: 100%;
  height: 145%;
  object-fit: cover;
  object-position: 42% top;
}
.elens-hero__inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 700px; padding-top: 92px; }
.elens-hero__content { width: min(510px, 42%); }
.elens-hero__title { margin: 0 0 18px; font-family: var(--elens-display); font-size: clamp(3.5rem, 6vw, 6.25rem); font-weight: 500; letter-spacing: -.055em; line-height: .73; }
.elens-hero__title small { display: block; margin-bottom: 14px; font-size: .48em; letter-spacing: -.03em; line-height: 1; }
.elens-hero__mainline { display: block; font-size: .7em; letter-spacing: -.04em; line-height: .9; white-space: nowrap; }
.elens-hero__title .elens-script { display: block; margin-top: 17px; font-size: .56em; letter-spacing: 0; }
.elens-hero__copy { max-width: 435px; margin: 0 0 28px; color: var(--elens-muted); }
.elens-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 34px; }
.elens-pillar { display: flex; align-items: center; gap: 8px; font-size: calc(.68rem + 5px); font-weight: 700; line-height: 1.15; }
.elens-pillar__icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border: 2px solid var(--elens-coral); border-radius: 50%; color: var(--elens-coral); font-size: .78rem; }

/* About */
.elens-about { background: var(--elens-beige); }
.elens-about__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 8vw, 110px); }
.elens-about__visual { position: relative; max-width: 520px; justify-self: end; }
.elens-about__photo { border-radius: 50% 50% 8px 8px; box-shadow: var(--elens-shadow); }
.elens-about__logo { position: absolute; top: 10%; left: -13%; width: 155px; filter: drop-shadow(0 14px 24px rgba(78,49,43,.1)); }
.elens-about__copy { max-width: 520px; }
.elens-about__copy .elens-title { margin-bottom: 26px; }
.elens-about__copy p { color: var(--elens-muted); }

/* Services */
.elens-services { background: #f8f8f8; }
.elens-services__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.service-card { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); overflow: hidden; border: 1px solid rgba(237,137,145,.7); border-radius: var(--elens-radius); background: var(--elens-white); }
.service-card__image { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.service-card__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 32px; }
.service-card h3 { margin: 0 0 10px; font-family: var(--elens-display); font-size: 2.1rem; font-weight: 500; line-height: .95; }
.service-card p { margin: 0 0 18px; color: var(--elens-muted); font-size: calc(.88rem + 5px); }
.service-card ul { margin: 0 0 24px; padding: 0; list-style: none; font-size: calc(.78rem + 5px); }
.service-card li { position: relative; margin: 9px 0; padding-left: 15px; }
.service-card li::before { content: ""; position: absolute; top: .58em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--elens-coral); }
.service-card .elens-button { min-height: 40px; padding: 8px 16px; font-size: calc(.69rem + 5px); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.portfolio-item { display: grid; min-height: 180px; padding: 27px; place-items: center; border-radius: 22px; background: #eee5df; transition: transform .2s ease, box-shadow .2s ease; }
.portfolio-item:nth-child(even) { background: #dcb3a8; }
.portfolio-item:nth-child(4) { background: #d99f99; }
.portfolio-item:hover { transform: translateY(-5px); box-shadow: var(--elens-shadow); }
.portfolio-item img { max-width: 100%; max-height: 96px; object-fit: contain; }

/* Testimonials */
.elens-testimonials { background: #f7f7f7; }
.testimonials-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.testimonial-card {
  display: flex;
  min-height: 330px;
  padding: 30px 28px 26px;
  flex-direction: column;
  border: 2px solid var(--elens-coral);
  border-radius: 24px;
  background: var(--elens-white);
}
.testimonial-card blockquote {
  position: relative;
  display: flex;
  margin: 0;
  flex: 1;
  flex-direction: column;
}
.testimonial-card blockquote::before {
  content: "“";
  display: block;
  height: 54px;
  color: var(--elens-coral);
  font-family: Georgia, serif;
  font-size: 5.3rem;
  font-weight: 700;
  line-height: .82;
}
.testimonial-card blockquote p {
  margin: 8px 0 24px;
  color: var(--elens-ink);
  font-size: calc(.86rem + 5px);
  line-height: 1.48;
}
.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
}
.testimonial-card cite {
  font-style: normal;
  font-size: calc(.79rem + 5px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.testimonial-avatar {
  position: relative;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--elens-beige);
}
.testimonial-avatar img {
  position: absolute;
  width: 421px;
  max-width: none;
  height: auto;
  border-radius: 0;
}
.testimonial-avatar--helena img { transform: translate(-50px, -267px); }
.testimonial-avatar--juan img { transform: translate(-57px, -266px); }
.testimonial-avatar--maria img { transform: translate(-62px, -267px); }
.testimonial-avatar--angel img { transform: translate(-61px, -267px); }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}
.process-step {
  position: relative;
  display: flex;
  min-height: 285px;
  height: 100%;
  padding: 24px 16px 22px;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(237,137,145,.35);
  border-radius: 24px;
  background: var(--elens-white);
  text-align: center;
}
.process-step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 65px;
  right: -22px;
  z-index: 2;
  color: var(--elens-coral);
  font-size: 1.7rem;
}
.process-icon {
  position: relative;
  display: block;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  margin-bottom: 18px;
  overflow: hidden;
}
.process-icon img {
  position: absolute;
  top: 0;
  left: -54px;
  width: 220px;
  max-width: none;
  height: auto;
}
.process-icon--execution img { left: -49px; width: 210px; }
.process-step h3 {
  min-height: 2.45em;
  margin: 0 0 9px;
  color: var(--elens-coral);
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.process-step p {
  margin: 0;
  color: var(--elens-ink);
  font-size: calc(.78rem + 5px);
  line-height: 1.48;
}

/* Contact */
.elens-contact { position: relative; overflow: hidden; background: var(--elens-blush); }
.elens-contact::before, .elens-contact::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.elens-contact::before { left: -250px; bottom: -190px; background: radial-gradient(circle, rgba(237,137,145,.26), transparent 69%); }
.elens-contact::after { top: -230px; right: -210px; background: radial-gradient(circle, rgba(218,184,159,.36), transparent 69%); }
.elens-contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 70px; }
.elens-contact__brand { width: 112px; margin-bottom: 28px; }
.elens-contact__intro .elens-title { margin-bottom: 20px; }
.elens-contact__intro > p { max-width: 430px; }
.contact-link { display: flex; align-items: center; gap: 13px; margin-top: 16px; font-size: calc(1.06rem + 5px); font-weight: 600; }
.contact-link img { width: 28px; height: 28px; object-fit: contain; }
.elens-form { padding: 38px; border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: var(--elens-shadow); }
#formulario-contacto { scroll-margin-top: 24px; }
.elens-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.elens-form input[type="text"], .elens-form input[type="email"], .elens-form input[type="tel"], .elens-form textarea {
  width: 100%; border: 0; border-radius: 13px; background: #eee5e0; color: var(--elens-ink); font-size: calc(.82rem + 5px);
}
.elens-form input[type="text"], .elens-form input[type="email"], .elens-form input[type="tel"] { height: 46px; padding: 0 16px; }
.elens-form textarea { min-height: 145px; padding: 15px 16px; resize: vertical; }
.elens-form__field { margin-top: 15px; }
.elens-form__label { display: block; margin: 18px 0 10px; font-size: calc(.78rem + 5px); font-weight: 800; }
.elens-options { display: flex; flex-wrap: wrap; gap: 11px 18px; }
.elens-options label { display: inline-flex; align-items: center; gap: 7px; font-size: calc(.75rem + 5px); }
.elens-options input { accent-color: var(--elens-coral); }
.elens-form__submit { margin-top: 18px; text-align: center; }
.elens-form__notice { margin: 0 0 18px; padding: 12px 15px; border-radius: 10px; background: #e8f7ec; color: #245a32; font-size: calc(.82rem + 5px); }
.elens-form__notice--error { background: #fff0f0; color: #8e3030; }

.site-footer { padding: 24px 20px; background: var(--elens-coral); color: var(--elens-white); text-align: center; font-size: calc(.82rem + 5px); }

@media (max-width: 1050px) {
  .elens-hero { min-height: 690px; }
  .elens-hero__inner { min-height: 690px; }
  .elens-hero__media { left: 31%; }
  .elens-hero__media img { height: 140%; object-position: 42% top; }
  .elens-hero::before { background: linear-gradient(90deg, #fff 0%, #fff 31%, rgba(255,255,255,.96) 40%, rgba(255,255,255,.56) 54%, rgba(255,255,255,.04) 75%); }
  .elens-hero__content { width: 50%; }
  .service-card { grid-template-columns: 1fr; }
  .service-card__image { min-height: 280px; max-height: 340px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .process-step::after { display: none; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  .elens-section { padding: 72px 0; }
  .nav-toggle { display: block; }
  .site-header__actions { gap: 12px; }
  .language-switcher { order: -1; padding-left: 0; padding-right: 13px; border-left: 0; border-right: 1px solid rgba(36,35,35,.2); }
  .site-nav { position: absolute; top: calc(100% + 4px); right: 20px; left: 20px; display: none; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.98); box-shadow: var(--elens-shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 15px; }
  .elens-hero { min-height: 820px; }
  .elens-hero__media { inset: 42% 0 0; }
  .elens-hero__media img { height: 115%; object-position: 50% 15%; }
  .elens-hero::before { background: linear-gradient(180deg, #fff 0%, #fff 42%, rgba(255,255,255,.9) 51%, rgba(255,255,255,.18) 66%, rgba(255,255,255,0) 78%); }
  .elens-hero__inner { align-items: flex-start; min-height: 820px; padding-top: 128px; }
  .elens-hero__content { width: 100%; text-align: center; }
  .elens-hero__copy { margin-inline: auto; }
  .elens-pillars { max-width: 480px; margin-inline: auto; text-align: left; }
  .elens-about__grid, .elens-contact__grid { grid-template-columns: 1fr; }
  .elens-about__visual { max-width: 430px; justify-self: center; }
  .elens-about__copy { text-align: center; }
  .elens-services__grid { grid-template-columns: 1fr; }
  .elens-contact__grid { gap: 42px; }
  .elens-contact__intro { text-align: center; }
  .elens-title--split-contact { justify-content: center; }
  .elens-contact__brand, .elens-contact__intro > p { margin-right: auto; margin-left: auto; }
  .contact-link { justify-content: center; }
}

@media (max-width: 560px) {
  .elens-container { width: min(100% - 28px, 1180px); }
  .site-brand img { width: 52px; height: 52px; }
  .site-header__inner { gap: 12px; }
  .elens-hero { min-height: 760px; }
  .elens-hero__media { inset: 46% 0 0; }
  .elens-hero__media img { height: 115%; object-position: 50% 12%; }
  .elens-hero__inner { min-height: 760px; padding-top: 112px; }
  .elens-hero__title { font-size: clamp(3.15rem, 15vw, 4.5rem); }
  .elens-hero__copy { font-size: calc(.9rem + 5px); }
  .elens-pillars { gap: 7px; }
  .elens-pillar { flex-direction: column; gap: 5px; text-align: center; font-size: calc(.58rem + 5px); }
  .elens-title__main { white-space: normal; }
  .elens-about__logo { left: -4%; width: 105px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .portfolio-item { min-height: 130px; padding: 18px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card { min-height: 285px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .elens-form { padding: 25px 18px; }
  .elens-form__row { grid-template-columns: 1fr; }
  .service-card__content { padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

