* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.625;
  font-size: clamp(16px, 2.5vw, 18px);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Site accent variables (used for CTA borders, accents, etc.) */
:root {
  --accent: #ff7a00; /* primary accent (text highlight) */
  --accent-2: #ff4500; /* secondary accent for gradients */
}

a { 
  color: inherit; 
  text-decoration: none; 
}

/* Contenedor principal */
#page-wrapper {
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  margin: 3rem auto;
  width: 100%;
  max-width: 1080px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

/* Layout principal */
header, main, footer {
  padding: 4rem 3rem;
}

@media (max-width: 768px) {
  header, main, footer {
    padding: 3rem 2rem;
  }
}

/* ALINEACIÓN UNIVERSAL - Todos los textos con el mismo ancho y centrado */
section {
  margin: 5rem 0;
  padding: 0;
  counter-reset: sub-counter;
}

section:first-of-type {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

section > *:not(.problems-list) {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

header {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: #fff;
}

/* Override: quitar padding-bottom del header (above-the-fold)
   y quitar padding-top del main para que el contenido 
   "pegue" al borde superior después del hero. Usamos !important
   para asegurarnos de que reglas globales no lo reapliquen. */
header {
  padding-bottom: 0;
}

main {
  padding-top: 0;
}

/* Tipografías */
h1 {
  font-size: clamp(36px, 7.5vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  color: #111827;
  letter-spacing: -0.025em;
  max-width: 900px;
  margin: 1.5rem auto 0;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-subtitle {
  text-align: center;
  max-width: 768px;
  margin: 1.5rem auto 2rem;
  color: #374151;
  font-size: clamp(20px, 2.75vw, 24px);
  line-height: 1.5;
}

.hero-cta {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin: 2.5rem auto 0.6rem;
  color: #1f2937;
  letter-spacing: normal;
}

.hero-cta::after {
  display: none;
}

.hero-form {
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* Make the CTA inside sections match the hero form structure and remove the
   decorative underline under its H2. This forces the second CTA to visually
   match the first one. */
.cta.hero-form {
  /* Ensure hero-form CTAs match the general .cta sizing on desktop so
     they are visually identical (use same max-width as .cta). */
  max-width: 68ch;
}

/* Hide the decorative line (pseudo-element) for CTA headings */
.cta h2::after,
.cta-title::after {
  display: none !important;
}

/* Also hide the decorative underline for specific section headings that
   should not show the general h2 decoration (problems list, FAQ) */
.problems-section h2::after,
.faq-section h2::after,
.problems-section .cta-title::after {
  display: none !important;
}

/* Small helper paragraph below CTA forms should be centered and compact */
.cta .hero-note,
.hero-form .hero-note,
.hero-note {
  text-align: center !important;
  margin-top: 0.4rem;
  margin-bottom: 0;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #333;
}

/* Intro bajo el h1 */

/* Featured snippet (lead paragraph) - centrado, legible y con firma visual */
.featured-snippet {
  margin: 1.75rem auto;
  max-width: 72ch; /* limites de lectura cómodos */
  padding: 1.25rem 1.5rem;
  /* soft two-stop gradient (fixed syntax) */
  background: #fff;
  border-radius: 12px;
  
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.85;
  color: #0f1724;
  text-align: center;
}

.featured-snippet p { margin: 0; }

.featured-snippet::before {
  /* pequeña barra decorativa centrada para dar ritmo visual */
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 0 auto 0.75rem;
  background: linear-gradient(90deg, #ff6200 0%, #ff4500 100%);
  border-radius: 4px;
  opacity: 0.95;
}

@media (max-width: 768px) {
  .featured-snippet {
    padding: 1rem;
    margin: 1rem auto;
    box-shadow: 0 6px 16px rgba(15,23,42,0.05);
    font-size: 1rem;
  }
  .featured-snippet::before { width: 48px; height: 3px; }
}

h1 span { 
  color: #ff7a00; 
}

h1 .accent {
  font-weight: 900;
}

h2 {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  margin: 4rem 0 3rem 0;
  letter-spacing: normal;
  position: relative;
  padding-bottom: 0;
  text-indent: 0;
  text-align: center;
  color: #1f2937;
}

h2::after {
  /* Global decorative line removed — hidden by default.
     Specific sections can re-enable if needed. */
  display: none !important;
}

/* Sección de problemas */
.problems-section {
  margin-bottom: 4rem;
}

/* About section - align all content to the left */
.about-section .about-content {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.about-section .about-content > * {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* Decorative line for the "Sobre mí" heading */
.about-section h2 {
  position: relative;
  margin: 4rem 0 3rem 0;
}

.about-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 2px;
  display: block !important;
}

.about-section p {
  font-size: clamp(18px, 2.8vw, 20px);
  line-height: 1.8;
}

/* Aplicar mismo estilo completo a las secciones siguientes */
section[aria-label="Llamada a la acción"],
section[aria-label="Beneficios y suscripción"] {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

section[aria-label="Llamada a la acción"] > *:not(.cta):not(.hero-cta),
section[aria-label="Beneficios y suscripción"] > *:not(.cta):not(.hero-cta) {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

section[aria-label="Llamada a la acción"] p:not(.hero-note),
section[aria-label="Beneficios y suscripción"] p:not(.hero-note) {
  font-size: clamp(18px, 2.8vw, 20px);
  line-height: 1.8;
}

.problems-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.problems-section h2::after {
  display: none;
}

.problems-list {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.problem-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1.5rem;
}

.problem-item p {
  text-align: left;
  margin: 0;
  font-size: inherit;
}

.problem-item .check-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

/* Título CTA después de reflexión */
.cta-title {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 1rem 0;
}

p { 
  margin: 0.1rem 0;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.75;
  color: #4b5563;
}

br {
  display: block;
  content: "";
  margin-top: 0.3em;
}

/* Mobile tweaks: slightly more breathing room for CTAs on narrow screens */
@media (max-width: 768px) {
  .cta,
  .cta.hero-form {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    /* ensure CTAs don't collapse full-bleed inside the centered container */
    box-sizing: border-box;
  }

  /* Make the inline controls a bit larger and easier to tap on mobile */
  .cta .controls input,
  .cta .controls button {
    font-size: 1rem;
    padding: 0.65rem 0.85rem;
  }
}

ul { 
  margin-left: 1.5rem; 
  margin-bottom: 1.5rem; 
}

li { 
  margin-bottom: 0.6rem; 
  font-size: clamp(17px, 2.5vw, 19px);
  color: #333; 
}

strong { 
  color: #000; 
  font-weight: 700; 
}

em { 
  font-style: italic; 
}

.accent { 
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #ff7a00;
  font-weight: 700;
}

/* Sección con números destacados */
.sub {
  margin: 3rem 0;
  padding-left: 0;
  counter-increment: sub-counter;
}

.sub h3 {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  color: #000;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 3.5rem;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.sub h3::before {
  content: counter(sub-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

/* Formularios y CTA */
.cta {
  /* Restablecer borde y 'oxígeno' para CTAs regulares (incluye CTAs 3 y 4). 
     Reglas más específicas (por ejemplo .cta.hero-form o .dark-cta .cta)
     seguirán teniendo prioridad cuando exista. */
  margin: 1.5rem auto !important; /* separación exterior */
  padding: 1.25rem 2rem; /* espacio interior agradable */
  border: 3px solid var(--accent);
  border-radius: 16px;
  text-align: center;
  max-width: 68ch;
  box-shadow: 0 10px 24px rgba(255,80,20,0.04);
}

/* CTA hero-specific tweaks: visual lift only. Spacing comes from .cta so
   all CTAs keep consistent padding/margin. */
.cta.hero-form {
  /* Match the general .cta visual treatment so all CTAs look the same */
  box-shadow: 0 10px 24px rgba(255,80,20,0.04);
  transition: box-shadow 160ms ease;
}

.cta.hero-form:focus-within,
.cta.hero-form:hover {
  /* keep a very subtle hover but avoid lift/translate to match others */
  box-shadow: 0 12px 28px rgba(255,80,20,0.06);
}

.cta * {
  max-width: 100%;
}

.cta h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.cta h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.news {
  margin: 0 auto;
}

form {
  margin-top: 1rem;
}

.controls {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
  width: 100%;
}

/* Formulario: input ancho y botón degradado estilo captura */
.cta .controls {
  max-width: 620px;
  margin: 1rem auto 0;
  align-items: center;
}

.cta .consent-box {
  max-width: 620px;
  margin: 0.75rem auto 0;
  text-align: left;
}

.cta .controls input[type="email"] {
  padding: 0.95rem 1rem;
  border: 1px solid #c6c6c6;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  font-size: 1rem;
  height: 56px;
}

/* Mobile-specific CTA normalisation: ensure all CTAs look identical on small screens */
@media (max-width: 768px) {
  .cta,
  .cta.hero-form {
    padding: 1rem 1.25rem !important;
    border-radius: 8px;
    box-sizing: border-box;
  }

  /* Stack controls vertically and give consistent spacing */
  .cta .controls {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  /* Make inputs and buttons full-width and consistent height on mobile */
  .cta .controls input[type="email"],
  .cta .controls button {
    width: 100%;
    height: 56px;
    box-sizing: border-box;
  }

  /* Ensure hero-note group sits inside the CTA with proper spacing */
  .hero-note-group {
    margin-top: 0.75rem;
  }

  /* Consent box should remain left-aligned within the CTA for readability */
  .cta .consent-box {
    text-align: left;
    margin-top: 0.75rem;
  }
}

.cta .controls button {
  padding: 0.9rem 1.5rem;
  height: 56px;
  min-width: 160px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 6px 14px rgba(255,80,20,0.12);
}

.cta .controls input[type="email"] { 
  flex: 1; 
}

.cta .controls button { 
  flex-shrink: 0; 
}

.consent-box { 
  text-align: center; 
}

.consent-box .consent-text { 
  display: inline-block; 
  max-width: 640px; 
  font-size: 0.85rem; 
  color: #666; 
}

input[type="email"] {
  padding: 0.9rem 1rem;
  border: 1px solid #000;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  flex: 1;
  min-width: 0;
  background: #fff;
  color: #000;
  box-sizing: border-box;
}

button {
  padding: 0.9rem 1.5rem;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

button:hover { 
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  color: #fff;
}

.consent-box {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #333;
}

.consent-box label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
}

.consent-box input[type="checkbox"] {
  margin-top: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-text {
  line-height: 1.5;
  text-align: left;
}

.consent-text a {
  color: #000;
  text-decoration: underline;
}

/* Accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


h3:focus {
  outline: 2px solid #ff7a00;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Footer */
footer {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  padding: 3rem 0;
  background: #fff;
}

footer a {
  color: #666;
  text-decoration: underline;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #000;
}

.callout {
  background: rgba(255, 122, 0, 0.04);
  border-left: 5px solid rgba(255, 90, 0, 0.12);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.callout-line {
  margin: 0.35rem 0;
  font-size: clamp(18px, 3vw, 20px);
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.callout-line strong {
  font-weight: 900;
  color: #000;
}

@media (max-width: 768px) {
  .callout {
    padding: 1rem;
    border-left-width: 4px;
  }

  .callout-line {
    font-size: 18px;
  }
}

.faq-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(42, 42, 42, 0.18);
  padding: 1.75rem 2.5rem;
  margin: 1.75rem auto;
  border: 1px solid #f0f0f0;
  max-width: 68ch;
  width: 100%;
  box-sizing: border-box;
}

.faq-card h3 {
  margin: 0 0 3rem 0;
  color: #111;
  font-size: clamp(18px, 2.5vw, 20px);
}

.faq-card p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: clamp(16px, 2.2vw, 18px);
}

@media (min-width: 769px) {
  .faq-card { 
    padding: 2rem 3rem; 
    max-width: 68ch; 
  }
}

.faq-section > h2 {
  font-weight: 700;
}

.faq-section > h2::after {
  display: none;
}

.faq-card .faq-question {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
  #page-wrapper {
    width: 85%;
    margin: 1rem auto;
  }
  header,footer {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    background: #fff;
  }
  
  #page-wrapper {
    width: 100%;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
  }
  
  header, main, footer {
    padding: 2rem 1rem;
  }
  
  h1 {
    max-width: 350px;
    font-weight: 900;
  }
  
  h2 {
    font-weight: 700;
  }
  
  h3 {
    font-weight: 700;
  }
  
  .cta {
    padding: 1rem 1.5rem;
  }
  
  .controls {
    flex-direction: column;
  }
  
  input[type="email"],
  button {
    width: 100%;
  }

  .cta .controls button { 
    height: 56px; 
    font-size: 1rem; 
    padding: 0.8rem; 
  }
  
  .cta .controls input[type="email"] { 
    height: 48px; 
  }
  
  p, li {
    max-width: none;
  }

  /* Make problem items occupy more width on mobile */
  .problems-list {
    max-width: 100% !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .problem-item {
    width: 100%;
    font-size: 1.35rem;
    gap: 0.75rem;
  }

  .problem-item p {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    max-width: 300px;
  }
}

@media (min-width: 769px) {
  body {
    font-size: 18px;
  }
}

  main p {
    margin: 1rem 0;
  }

  main p + p {
    margin-top: 1rem;
  }

  section {
    margin-bottom: 4rem;
  }

  blockquote {
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    background: rgba(246, 244, 242, 0.6);
    border-left: 3px solid rgba(255,90,40,0.15);
    color: #444;
    font-style: italic;
    border-radius: 6px;
    max-width: 70ch;
  }

  blockquote p:first-of-type::before {
    content: '"';
    font-size: 2.2rem;
    line-height: 0;
    margin-right: 0.35rem;
    vertical-align: -0.35rem;
    color: rgba(255,90,40,0.25);
  }

  h2, .cta-p {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
  }

  details {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
  }

  details summary {
    cursor: pointer;
    font-weight: 700;
    color: #000;
  }

  footer p {
    line-height: 1.6;
  }

/* Sección de reflexión */
.reflection-section {
  text-align: center;
  margin: 3rem 0;
  padding: 3rem 2rem;
}

@media (min-width: 768px) {
  .reflection-section {
    margin-top: 3rem;
    margin-bottom: 7rem;
  }
}

.reflection-section h2 {
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 800;
  margin: 1.5rem 0;
  letter-spacing: -0.5px;
}

.reflection-section h2::after {
  display: none;
}

.reflection-question {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  text-align: center;
  color: rgb(26, 26, 26); /* text-gray-900 (restore default) */
  margin: 0 auto 1.5rem;
  max-width: 900px;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .reflection-question {
    font-size: 2.7rem;
    line-height: 3.25rem;
    margin-bottom: 2.8rem;
    max-width: 800px;
  }
}

.reflection-question:last-of-type {
  margin-bottom: 0;
}

/* Sólo la primera pregunta de reflexión debe destacarse en un gris más oscuro */
.reflection-section .reflection-question:first-of-type {
  color: #292929;
}

.reflection-question.highlight-question {
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.reflection-question.highlight-question strong {
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.highlight-question {
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Texto en negrita */
.bold-text {
  font-weight: 700;
  color: #000;
}

/* CTA oscuro */
.dark-cta {
  background: #1a1a1a;
  padding: 3rem 2rem;
  border-radius: 12px;
  margin: 5rem 0;
}

.dark-cta .cta {
  background: transparent;
  border: none;
  padding: 0;
}

.dark-cta .controls input[type="email"] {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
}

.dark-cta .controls input[type="email"]::placeholder {
  color: #888;
}

.dark-cta .consent-text {
  color: #aaa;
}

.dark-cta .consent-text a {
  color: #ff4500;
}

.cta-footer-text {
  margin-top: 2rem;
  text-align: center;
}

.cta-footer-text p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0.5rem 0;
  line-height: 1.6;
}

/* Footer mejorado */
.footer-copyright {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  
  .dark-cta {
    padding: 2rem 1rem;
  }
}

.faq-section .faq-card {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 68ch;
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
}

.faq-section {
  padding-left: 1rem;
  padding-right: 1rem;
}

#page-wrapper > main > .reflection-section {
  margin-top: 1rem;
}
