* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: 'VictoryMarr', Arial, sans-serif;
  background: #F9FAFB;
  color: #334155;
  line-height: 1.625;
  font-size: clamp(17px, 2.5vw, 19px);
  scroll-behavior: smooth;
}

/* --- Hero Container (Above the Fold) --- */
.hero-container {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: #fff;
}

/* --- Hero Header --- */
.hero-header {
  width: 100%;
  max-width: 48rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  margin: 0 auto;
}

/* --- Main Title --- */
.main-title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.main-title .accent {
  display: block;
  background-image: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
}

/* Accent for inline text */
span.accent {
  background-image: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* --- Author Name --- */
.author-name {
  margin: 2rem 0 0 0;
  font-size: 1.25rem;
  color: #475569;
  font-weight: 400;
}

/* --- Intro Text --- */
.intro-text {
  margin: 2rem 0 0 0;
  max-width: 42rem;
}

.intro-text p {
  margin: 0 0 1rem 0;
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.75;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

/* --- Form Container Wrapper --- */
.form-container-wrapper {
  margin: 2rem 0 0 0;
  width: 100%;
  max-width: 32rem;
}

/* --- Subscription Form Card --- */
.subscription-form-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Espaciado cuando se usa como sección independiente */
section.subscription-form-card {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.subscription-form-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: #0f172a;
}

.subscription-form-card form > * + * {
  margin-top: 1rem;
}

/* --- Email Input --- */
.email-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #F3F4F6;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  color: #0f172a;
  font-size: 1rem;
  transition: border-color 150ms, box-shadow 150ms;
}

.email-input::placeholder {
  color: #9CA3AF;
}

.email-input:focus {
  outline: none;
  border-color: #F97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* --- Submit Button --- */
.submit-button {
  width: 100%;
  background-image: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 150ms, opacity 150ms;
  font-size: 1rem;
}

.submit-button:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #F97316;
}

/* --- Privacy Container --- */
.privacy-container {
  display: flex;
  align-items: flex-start;
  padding-top: 0.5rem;
}

.privacy-checkbox {
  height: 1rem;
  width: 1rem;
  margin-top: 0.25rem;
  margin-right: 0.75rem;
  accent-color: #EA580C;
  flex-shrink: 0;
}

.privacy-label {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

.privacy-label a {
  text-decoration: underline;
  color: inherit;
}

.privacy-label a:hover {
  color: #EA580C;
}

/* --- Status Message --- */
.subscription-form-card .muted {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
  text-align: center;
}

/* --- Responsive Adjustments --- */
@media (min-width: 640px) {
  .main-title { 
    font-size: 3rem; 
  }
  .subscription-form-card { 
    padding: 2rem; 
  }
}

@media (min-width: 768px) {
  .main-title { 
    font-size: 3.75rem; 
  }
  .author-name { 
    font-size: 1.5rem; 
  }
}

/* --- Links --- */
a { 
  color: inherit; 
  text-decoration: none; 
}

/* Contenedor principal */
#page-wrapper {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin: 2rem auto;
  padding: 0 2.5rem;
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
}

header, main, footer {
  padding: 4rem 0;
}

/* Alineación universal */
section {
  margin: 6rem 0;
  padding: 0;
}

section:first-of-type {
  margin-top: 4rem;
  margin-bottom: 5rem;
}

section > * {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

/* Old header styles - deprecated, using new hero-container styles above */
/*
header {
  padding-top: 4rem;
  padding-bottom: 5rem;
  text-align: center;
  background: #fff;
  color: #000;
  font-weight: 900;
  letter-spacing: -1px;
}
*/

/* Tipografía */
/* Old h1 styles - deprecated, using .main-title above */
/*
h1 {
  font-size: clamp(42px, 8vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  color: #000;
  letter-spacing: -1px;
  max-width: 700px;
  margin: 2.5rem auto 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 span,
h1 .accent { 
  color: #ff7a00;
  font-weight: 900;
}
*/

h2 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  margin: 4rem 0 2.5rem 0;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  border-radius: 2px;
}

h3 {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  line-height: 1.4;
  margin: 2.5rem 0 1.5rem 0;
}

p { 
  margin: 1.2rem 0;
  font-size: clamp(17px, 2.5vw, 19px);
  line-height: 1.9;
  color: #444;
}

br {
  display: block;
  content: "";
  margin-top: 0.4em;
}

ul { 
  margin: 2rem 0 2rem 1.5rem;
}

li { 
  margin-bottom: 1rem;
  font-size: clamp(17px, 2.5vw, 19px);
  line-height: 1.8;
  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;
}

/* FAQ */
.faq {
  margin: 5rem auto;
  max-width: 68ch;
}

.faq h2 {
  margin-bottom: 2rem;
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: #0f172a;
}

.faq h2::after {
  display: none;
}

.faq-item {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.faq-item:last-of-type {
  margin-bottom: 3rem;
}

.faq-item dt {
  font-weight: 700;
  font-size: clamp(17px, 2.5vw, 19px);
  margin: 0 0 0.75rem 0;
  color: #0f172a;
  line-height: 1.5;
}

.faq-item dd {
  margin: 0;
  padding: 0;
  color: #475569;
  font-size: clamp(16px, 2.5vw, 18px);
  line-height: 1.7;
}

.faq-item dd a {
  color: #EA580C;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.faq-item dd a.accent {
  background-image: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-decoration: underline;
}

.faq-item dd a:hover {
  color: #C2410C;
}

.faq-item dd a.accent:hover {
  opacity: 0.8;
}

/* Requisitos Cards */
.requisito-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.requisito-card .requisito-title {
  background-image: linear-gradient(135deg, #ff6200 0%, #ff4500 50%, #ff0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  margin: 0 0 1rem 0;
  padding-bottom: 0;
  letter-spacing: -0.5px;
}

.requisito-card .requisito-title::after {
  display: none;
}

.requisito-card p {
  margin: 0.75rem 0;
  color: #475569;
  line-height: 1.75;
}

.requisito-card p:first-of-type {
  margin-top: 0;
}

.requisito-card p:last-child {
  margin-bottom: 0;
}

.requisito-card ul {
  margin: 1rem 0 0 1.5rem;
  padding: 0;
}

.requisito-card li {
  color: #475569;
  margin-bottom: 0.5rem;
}

.requisito-card li:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
  padding: 4rem 0;
  background: #fff;
  margin-bottom: 2rem;
}

footer a {
  color: #666;
  text-decoration: underline;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #000;
}

/* 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;
}

h2:focus,
h3:focus {
  outline: 2px solid #ff7a00;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Media Queries */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  #page-wrapper {
    width: 85%;
    margin: 1.5rem auto;
    padding: 0 2rem;
  }
  
  header, main, footer {
    padding: 3rem 0;
  }
  
  header {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
  
  section {
    margin: 5rem 0;
  }
}

/* Móvil */
@media (max-width: 768px) {
  /* Hero mobile adjustments */
  .hero-header {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .author-name {
    font-size: 1.125rem;
    margin: 1.5rem 0 0 0;
  }
  
  .intro-text {
    margin: 1.5rem 0 0 0;
  }
  
  .intro-text p {
    font-size: 1rem;
  }
  
  .form-container-wrapper {
    margin: 1.5rem 0 0 0;
  }
  
  .subscription-form-card {
    padding: 1.5rem;
  }
  
  .subscription-form-card h3 {
    font-size: 1.25rem;
  }
  
  /* Main content mobile adjustments */
  body {
    background: #fff;
    line-height: 1.8;
  }
  
  #page-wrapper {
    width: 100%;
    margin: 0;
    padding: 0 1.5rem;
    box-shadow: none;
  }
  
  header, main, footer {
    padding: 2rem 0;
  }
  
  header {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
  
  section {
    margin: 4rem 0;
  }
  
  section:first-of-type {
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
  }
  
  h1 {
    max-width: 400px;
    font-weight: 900 !important;
    line-height: 1.1;
  }
  
  h2 {
    font-weight: 900 !important;
    margin: 3rem 0 2rem 0;
  }
  
  h3 {
    font-weight: 800 !important;
    margin: 2rem 0 1.2rem 0;
  }
  
  p {
    margin: 1rem 0;
  }

  section.subscription-form-card {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
  }
  
  .faq {
    margin: 3.5rem auto;
  }
  
  .faq h2 {
    font-size: clamp(24px, 4vw, 28px);
  }
  
  .faq-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .requisito-card {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .requisito-card .requisito-title {
    font-size: clamp(20px, 4vw, 24px);
  }
  
  footer {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  /* Hero extra small screens */
  .hero-header {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
  
  .main-title {
    font-size: 1.75rem;
  }
  
  .author-name {
    font-size: 1rem;
  }
  
  .intro-text p {
    font-size: 0.9375rem;
  }
  
  .subscription-form-card {
    padding: 1.25rem;
  }
  
  /* Main content extra small screens */
  #page-wrapper {
    padding: 0 1.2rem;
  }
  
  h1 {
    font-size: 42px;
    font-weight: 900 !important;
    line-height: 1.1;
    max-width: 300px;
  }
  
  header {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Escritorio */
@media (min-width: 769px) {
  body {
    font-size: 20px;
    line-height: 2;
  }
  
  p {
    font-size: 22px;
    line-height: 2;
  }
  
  li {
    font-size: 22px;
    line-height: 1.9;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem;
  clip: auto;
  background: #fff;
  color: #000;
  z-index: 100000;
}
