@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,700;1,9..144,300;1,9..144,400&family=Instrument+Sans:wght@300;400;500&display=swap');

/* ============================================================
   elenabenitoruiz.com — Global Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
  --klein: #2c3999;
  --klein-dark: #1e2566;
  --black: #1a1a1a;
  --gray-dark: #3a3a3a;
  --gray-mid: #5a5a5a;
  --gray-light: #9a9a9a;
  --terracota: #C4603A;
  --border: #E0DDD8;
  --bg: #ffffff;
  --font-display: 'Fraunces', serif;
  --font-body: 'Instrument Sans', sans-serif;
  --max-width: 980px;
  --padding-x: 48px;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: var(--klein);
  color: #fff;
  font-size: 14px;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  font-size: 18.7px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--gray-dark);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--klein);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--klein-dark);
}

/* --- Layout --- */
nav,
.hero,
.section,
.cta-section,
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--padding-x);
  padding-right: var(--padding-x);
}

/* --- Navigation --- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.wordmark {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 26px;
  color: var(--black);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
}

.wordmark span {
  color: var(--klein);
}

.nav-items {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 16px;
  color: var(--gray-mid);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--black);
}

.nav-link.active {
  color: var(--black);
  font-weight: 500;
  border-bottom: 1px solid var(--klein);
  color: var(--klein);
  padding-bottom: 1px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  white-space: nowrap;
}

.lang-active {
  color: var(--black);
  font-weight: 500;
}

.lang-sep {
  color: var(--gray-light);
}

.lang-inactive {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.15s;
}

.lang-inactive:hover {
  color: var(--klein);
}

.nav-cta {
  background: var(--klein);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 9px 18px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: 4px;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--klein-dark);
  color: #fff;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-block;
  background: var(--klein);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: background 0.15s;
}

.cta-btn:hover {
  background: var(--klein-dark);
  color: #fff;
}

/* --- Section label --- */
.section-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--klein);
  text-transform: uppercase;
  margin-bottom: 48px;
}

/* --- Hero byline --- */
.hero-byline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--klein);
  margin-bottom: 16px;
}

/* --- Hero --- */
.hero {
  padding-top: 88px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  font-style: normal;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 28px;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray-dark);
  margin-bottom: 40px
}

/* --- Sections --- */
.section {
  padding-top: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border);
}

/* --- Prose (El problema) --- */
.prose p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* --- Services index nav --- */
.services-nav {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.services-nav-item {
  flex: 1;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
  transition: background 0.15s;
}
.services-nav-item:last-child {
  border-right: none;
}
.services-nav-item:hover {
  background: #f5f6fc;
}
.services-nav-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--klein);
  flex-shrink: 0;
}
.services-nav-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-dark);
  line-height: 1.3;
}
.services-nav-item:hover .services-nav-name {
  color: var(--klein);
}

/* --- Problem accent --- */
.problema-accent {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: var(--terracota);
  line-height: 1.4;
  padding: 24px 0 24px 24px;
  border-left: 3px solid var(--terracota);
  margin: 28px 0;
}

/* --- Expandable service list --- */
.service-expandable {
  margin-top: 20px;
  margin-bottom: 12px;
}
.service-expandable > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 10px 14px;
  background: #eef0fa;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--klein);
}
.service-expandable > summary::-webkit-details-marker {
  display: none;
}
.service-expandable[open] > summary {
  border-radius: 4px 4px 0 0;
}
.service-expandable .service-list {
  background: #f5f6fc;
  padding: 4px 14px 8px;
  border-radius: 0 0 4px 4px;
  margin: 0;
}
.service-expandable .faq-icon {
  font-size: 18px;
}

/* --- Services --- */
.service {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 32px;
  align-items: start;
}

.service-num {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--klein);
  padding-top: 5px;
}

.service-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--klein);
  margin-bottom: 14px;
  line-height: 1.3;
}

.service-content p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--gray-mid);
  margin-bottom: 12px;
}

.service-content p:last-child {
  margin-bottom: 0;
}

.service-sublabel {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-top: 20px;
  margin-bottom: 10px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.service-list li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-dark);
  padding: 6px 0 6px 20px;
  position: relative;
  border-top: none;
}

.service-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--klein);
  font-size: 7px;
  top: 11px;
}

.when-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.when-card {
  background: #f8f8f8;
  padding: 14px 16px;
  border-radius: 4px;
}

.when-card strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--klein);
  display: block;
  margin-bottom: 6px;
}

.when-card span {
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-mid);
}

/* --- About + Testimonials --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text .section-label {
  margin-bottom: 20px;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.25;
  margin-bottom: 18px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-dark);
  margin-bottom: 20px;
}

.about-link {
  font-size: 14px;
  color: var(--klein);
  text-decoration: none;
}

.about-link:hover {
  color: var(--klein-dark);
}

.testimonials-col .section-label {
  margin-bottom: 0;
}

.testimonial {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.65;
  color: var(--black);
  margin-bottom: 12px;
}

.testimonial cite {
  font-size: 13px;
  color: var(--gray-mid);
  font-style: normal;
}

/* --- FAQ --- */
.faq {
  max-width: 640px;
}

.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--klein);
  line-height: 1;
  transition: transform 0.2s ease;
  user-select: none;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-mid);
  padding-top: 10px;
}

/* --- CTA Section --- */
.cta-section {
  padding-top: 88px;
  padding-bottom: 88px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 16px;
  color: var(--gray-mid);
  margin-bottom: 36px;
}

/* --- Footer --- */
footer {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 12px;
  color: var(--gray-light);
}

.accent-terra {
  color: var(--terracota);
}

.dot-terra {
  color: var(--terracota);
}

.section-centered {
  text-align: center;
}

.section-centered .faq {
  text-align: left;
  margin: 0 auto;
}

/* --- Responsive --- */

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --padding-x: 24px;
  }

  nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav-items {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 42px;
  }

  .service {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-num {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .when-grid {
    grid-template-columns: 1fr;
  }

  .cta-section h2 {
    font-size: 34px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
