/* =========================================================
   FONT-FACE CON FONT-DISPLAY: SWAP (como fallback)
   ========================================================= */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Poppins Regular'), local('Poppins-Regular');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Poppins SemiBold'), local('Poppins-SemiBold');
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Cinzel Regular'), local('Cinzel-Regular');
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Cinzel Medium'), local('Cinzel-Medium');
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Cinzel SemiBold'), local('Cinzel-SemiBold');
}

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Cinzel Bold'), local('Cinzel-Bold');
}

/* =========================================================
   RESET GENERAL
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   HTML / BODY – COLUMNA MAYA NÍTIDA (FIX REAL)
========================================================= */
html, body {
  min-height: 100%;
}

body {
  /* 🔥 CAMBIO ÚNICO: Fondo azul inmediato (arregla LCP) */
  background-color: #1ca5f1;

  /* TODO LO DEMÁS INTACTO: */
  font-family: 'Poppins', sans-serif;
  background-image: url("../img/fondonawales.webp");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  background-attachment: scroll;
  color: #2e1e12;
  padding: 0 10px;
}

/* =========================================================
   TÍTULO PRINCIPAL
========================================================= */
h1 {
  font-family: 'Cinzel', serif;
  text-align: center;
  margin: 25px 15px 22px;
  font-size: clamp(24px, 5vw, 30px);
  color: #3b2314;
  letter-spacing: 0.04em;
  line-height: 1.3;
  font-weight: 600;
  text-shadow: 1px 1px 0 #e8dac9;
  border-bottom: 2px solid #caa472;
  padding-bottom: 6px;
}

/* =========================================================
   FORMULARIO - SIMPLE Y RESPONSIVE
========================================================= */
.form-container {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.form-row {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  max-width: 1100px;
  width: 100%;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #4b2e1a;
  text-align: center;
  margin-bottom: 15px;
  font-size: 20px;
  width: 100%;
}

.fecha-flex-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.input-label {
  font-size: 18px;
  color: #7a4a22;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.ecajas2 {
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #c6b39b;
  background: #fffdfa;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  min-width: 90px;
  max-width: 120px;
  text-align: center;
  font-weight: bold;
}

.ecajas2.mes {
  min-width: 140px;
  font-weight: bold;
}

.ecajas2.año {
  min-width: 110px;
  font-weight: bold;
}

.ecajas2:focus {
  outline: none;
  border-color: #7a4a22;
  box-shadow: 0 0 0 2px rgba(122, 74, 34, 0.2);
}

#nawalForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ebotones1 {
  padding: 12px 24px;
  background: #7a4a22;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  min-width: 160px;
  height: 46px;
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.ebotones1:hover {
  background: #9c6736;
  transform: translateY(-2px);
}

.resultado {
  max-width: 1150px;
  margin: 30px auto;
  padding: 0 10px;
}

.nawal-card {
  background-image: url("../img/fondogts.webp");
  background-repeat: repeat;
  background-position: center center;
  background-size: auto;
  background-color: transparent;
  border-radius: 20px;
  padding: 25px 25px 70px 25px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nawal-card h2 {
  font-family: 'Cinzel', serif;
  text-align: center;
  font-size: clamp(26px, 5vw, 75px);
  margin-bottom: 15px;
  color: #5a351a;
  letter-spacing: 1px;
  line-height: 1.2;
}

.nawal-card h3 {
  font-family: 'Cinzel', serif;
  text-align: justify;
  font-size: clamp(18px, 4vw, 22px);
  margin: 20px 0 15px;
  color: #7a4a22;
  border-bottom: 2px solid #e6d5c3;
  padding-bottom: 8px;
  font-weight: bold;
}

.nawal-card p {
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.3;
  color: #2e1e12;
  text-align: left;
}

.nawal-card ul {
  padding-left: 20px;
  margin: 15px 0;
}

.nawal-card li {
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.6;
  margin-bottom: 10px;
}

.nawal-card img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 920px;
  padding: 10px;
}

.nawal-card .bloque,
.nawal-card .seccion,
.nawal-card .card {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #d3c1aa;
}

.nawal-card .bloque:empty,
.nawal-card .seccion:empty,
.nawal-card .card:empty {
  display: none;
}

.info-nawal-contacto {
  font-family: 'Poppins', sans-serif;
  max-width: 700px;
  margin: 30px auto;
  padding: 20px;
  background: #f4f1ec;
  border: 2px solid #c9b89e;
  border-radius: 12px;
  text-align: center;
  color: #4b3d2d;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.info-nawal-contacto p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.botones-contacto {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-maya {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  transition: 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  min-width: 160px;
  justify-content: center;
}

.btn-whatsapp {
  background-color: #000000;
  color: #ffffff;
}

.btn-email {
  background-color: #000000;
  color: #ffffff;
}

.btn-maya i {
  margin-right: 8px;
  font-size: 18px;
}

.btn-maya:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

#adsense-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  width: 100%;
}

@media (min-width: 769px) {
  body {
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(28, 165, 241, 0.88);
    z-index: 0;
    pointer-events: none;
  }

  body > * {
    position: relative;
    z-index: 1;
  }

  h1 {
    color: white;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #ffffff;
  }

  .form-row {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .form-label {
    color: white;
  }

  .input-label {
    color: white;
  }

  .ecajas2 {
    border: 2px solid #000000;
    background: white;
  }

  .ecajas2:focus {
    border-color: #06496F;
    box-shadow: 0 0 0 2px rgba(6, 73, 111, 0.2);
  }

  .fecha-flex-container {
    align-items: flex-end;
  }

  .input-wrapper:last-child {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .ebotones1 {
    background: #06496F;
    margin-top: 0;
    margin-bottom: 2px;
  }

  .ebotones1:hover {
    background: #053a58;
  }

  .nawal-card {
    background-image: url("../img/fondogts.webp");
    background-repeat: repeat;
    background-position: center center;
    background-size: auto;
    background-color: transparent;
    padding: 25px 25px 70px 25px;
    border-radius: 8px;
    box-shadow: none;
  }

  .nawal-card h2 {
    font-size: clamp(28px, 5vw, 75px);
  }

  .info-nawal-contacto {
    background: transparent;
    border: none;
    border-radius: 0;
    color: white;
    box-shadow: none;
  }

  .info-nawal-contacto p {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 1200px) {
  .form-row {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  h1 {
    margin: 12px 10px 8px;
  }

  .form-container {
    margin-bottom: 8px;
  }

  .form-row {
    padding: 12px 15px;
  }

  body {
    padding: 0;
    overflow-x: hidden;
  }

  html {
    overflow-x: hidden;
  }

  body {
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(28, 165, 241, 0.88);
    z-index: 0;
    pointer-events: none;
  }

  body > * {
    position: relative;
    z-index: 1;
  }

  h1 {
    font-size: 24px;
    color: white;
  }

  .form-row {
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: transparent;
    box-shadow: none;
  }

  .form-label {
    font-size: 15px;
    margin-bottom: 8px;
    color: white;
  }

  .fecha-flex-container {
    flex-wrap: wrap;
    gap: 6px;
  }

  .input-wrapper {
    flex: 1;
    min-width: 0;
  }

  .ecajas2 {
    min-width: 0;
    max-width: 100%;
    padding: 8px 9px;
    font-size: 15px;
    font-weight: bold;
    background: white;
    border: 2px solid #000000;
  }

  .ecajas2.mes,
  .ecajas2.año {
    min-width: 0;
  }

  /* ✅ FIX REAL: el orden se aplica al FLEX-ITEM (.input-wrapper),
     NO al botón (porque el botón NO es hijo directo del flex). */
  .fecha-flex-container .input-wrapper:nth-child(4) {
    order: 4;
    width: 100%;
  }

  .fecha-flex-container .input-wrapper:nth-child(4) .ebotones1 {
    width: 100%;
    min-width: 0;
  }

  /* ✅ Botón igual que tu diseño (solo sin "order" aquí) */
  .ebotones1 {
    margin-top: 12px;
    font-size: 15px;
    padding: 10px 20px;
    background: #06496F;
    color: #ffffff;
    border: none;
  }

  .ebotones1:hover {
    background: #053a58;
    transform: translateY(-2px);
  }

  .input-label {
    font-size: 13px;
    color: white;
    margin-bottom: 2px;
  }

  .resultado {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .nawal-card {
    padding: 15px 15px 60px 15px;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    background-image: url("../img/fondogts.webp");
    background-repeat: repeat;
    background-position: center center;
    background-size: auto;
    background-color: transparent;
  }

  .nawal-card h2 {
    font-size: 60px;
    margin-bottom: 10px;
  }

  /* ---- TEXTO MÁS GRANDE SOLO EN MÓVIL ---- */
  .nawal-card h3 {
    font-size: 22px;
    margin: 15px 0 10px;
    text-align: justify;
  }

  .nawal-card p {
    font-size: 19px;
    line-height: 1.6;
    text-align: left;
  }
  /* ----------------------------------------- */

  .nawal-card img {
    max-height: none;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 12px 0;
    display: block;
    max-width: 100%;
    object-fit: contain;
  }

  .nawal-card img:first-of-type {
    margin-top: 0;
  }

  .info-nawal-contacto {
    padding: 15px 15px;
    margin: 15px auto;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .info-nawal-contacto p {
    font-size: 16px;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .botones-contacto {
    gap: 10px;
    flex-direction: row;
  }

  .btn-maya {
    padding: 10px 16px;
    font-size: 15px;
    min-width: 140px;
    flex: 1;
    max-width: calc(50% - 5px);
  }
}

@media (max-width: 480px) {
  h1 {
    margin: 10px 8px 6px;
  }

  .form-row {
    padding: 10px 12px;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
    background: transparent;
    box-shadow: none;
  }

  .form-label {
    font-size: 14px;
    margin-bottom: 8px;
    color: white;
  }

  .fecha-flex-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 6px;
  }

  .input-wrapper:nth-child(1) { grid-column: 1; }
  .input-wrapper:nth-child(2) { grid-column: 2; }
  .input-wrapper:nth-child(3) { grid-column: 3; }

  .input-wrapper:nth-child(4) {
    grid-column: 1 / span 3;
    grid-row: 2;
  }

  .ecajas2 {
    padding: 7px;
    font-size: 14px;
    max-width: 100%;
    border-radius: 8px;
    font-weight: bold;
    background: white;
    border: 2px solid #000000;
  }

  .ebotones1 {
    padding: 9px;
    font-size: 14px;
    margin-top: 10px;
    min-width: 100%;
    background: #06496F;
    color: #ffffff;
    border: none;
  }

  .ebotones1:hover {
    background: #053a58;
    transform: translateY(-2px);
  }

  .input-label {
    font-size: 12px;
    color: white;
    margin-bottom: 2px;
  }

  .resultado {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .nawal-card {
    padding: 12px 12px 50px 12px;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-shadow: none;
    background-image: url("../img/fondogts.webp");
    background-repeat: repeat;
    background-position: center center;
    background-size: auto;
    background-color: transparent;
  }

  .nawal-card h2 {
    font-size: 50px;
    margin-bottom: 8px;
  }

  .nawal-card h3 {
    font-size: 20px;
    margin: 12px 0 8px;
    text-align: justify;
  }

  .nawal-card p {
    font-size: 17px;
    line-height: 1.2;
    text-align: left;
  }

  .nawal-card img {
    max-height: none;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 8px 0;
    display: block;
    max-width: 100%;
    object-fit: contain;
  }

  .nawal-card img:first-of-type {
    margin-top: 0;
  }

  .info-nawal-contacto {
    padding: 12px 12px;
    margin: 12px 0;
    max-width: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .info-nawal-contacto p {
    font-size: 15px;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  .botones-contacto {
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }

  .btn-maya {
    width: 100%;
    max-width: calc(50% - 4px);
    padding: 10px 16px;
    font-size: 15px;
    flex: 1;
  }
}

.nawal-card {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   SEO - OCULTO VISUALMENTE (EXACTAMENTE COMO EN TU ORIGINAL)
   ========================================================= */
.seo-intro {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;  /* ← ESTO ES CLAVE: margin -1px */
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nawal-card .bloque:empty,
.nawal-card .seccion:empty,
.nawal-card .card:empty {
  display: none;
}

/* ===== Texto contacto: versión bonita en móvil y estable en escritorio ===== */
.contacto-texto {
  margin: 0 auto 18px;
  max-width: 520px;
  text-align: center;
  line-height: 1.55;
}

.contacto-titulo {
  display: block;
  font-size: clamp(18px, 4.5vw, 22px);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.contacto-linea {
  display: block;
  font-size: clamp(15px, 4vw, 18px);
  margin-top: 6px;
}

/* Evita que palabras sueltas (WhatsApp / correo electrónico) queden en líneas raras */
.contacto-texto strong {
  white-space: nowrap;
}

/* En pantallas MUY pequeñas, permite que rompa si ya no cabe */
@media (max-width: 360px) {
  .contacto-texto strong {
    white-space: normal;
  }
}

/* =========================================================
   SEO CONTENT + FAQ + FOOTER (VERSIÓN FINAL CORREGIDA)
========================================================= */

/* Intro debajo del H1 (si la usas) */
.intro {
  max-width: 1100px;
  margin: 0 auto 14px;
  padding: 0 12px;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.6;
  text-align: center;
  color: #2e1e12;
}

/* =========================================================
   SEO + FAQ
========================================================= */

.contenido-seo,
.faq {
  max-width: 1100px;
  margin: 18px auto;
  padding: 18px 18px;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  border: 2px solid #c9b89e;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.contenido-seo h2,
.faq h2 {
  font-family: 'Cinzel', serif;
  color: #5a351a;
  font-size: clamp(20px, 4.3vw, 28px);
  margin: 8px 0 10px;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #e6d5c3;
  padding-bottom: 8px;
  text-align: left;
}

.faq h3 {
  font-family: 'Poppins', sans-serif;
  color: #7a4a22;
  font-size: clamp(16px, 3.8vw, 18px);
  margin: 14px 0 8px;
  font-weight: 700;
}

.contenido-seo p,
.faq p {
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.7;
  color: #2e1e12;
  margin: 8px 0 12px;
}

/* =========================================================
   FOOTER NEGRO FULL WIDTH
========================================================= */

.site-footer {
  background: #000;
  width: calc(100% + 20px);
  margin-left: -10px;
  margin-right: -10px;
  margin-top: 20px;
  padding: 18px 12px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

/* ✅ FIX: link del footer en blanco (evita azul por defecto) */
.site-footer a,
.site-footer a:visited {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
  outline: none;
}

.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 769px) {
  .intro {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.22);
  }

  .contenido-seo,
  .faq {
    background: rgba(255,255,255,0.96);
    border-color: rgba(0,0,0,0.12);
    box-shadow: none;
  }

  .site-footer p {
    color: #fff;
    text-shadow: none;
  }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 768px) {
  .contenido-seo,
  .faq {
    margin: 10px 0;
    border-radius: 0;
    max-width: 100%;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 12px 14px;
  }

  .contenido-seo h2,
  .faq h2,
  .faq h3,
  .contenido-seo p,
  .faq p {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.22);
  }

  .site-footer {
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-right: -10px;
    padding: 16px 10px;
  }

  .site-footer p {
    color: #fff;
    text-shadow: none;
    font-size: 12px;
    line-height: 1.35;
  }
}

/* =========================================================
   ESPACIADO GLOBAL + ADS (FIX EN TODO EL SITIO)
========================================================= */

/* Devuelve ritmo vertical básico (tu reset los dejó en 0) */
h1, h2, h3, h4, h5, h6 { margin: 0 0 12px; }
p { margin: 0 0 14px; }

ul, ol { margin: 0 0 14px; padding-left: 20px; }
li { margin: 0 0 8px; }

/* Tus secciones/bloques del resultado */
.resultado .bloque,
.resultado .seccion,
.resultado .card {
  margin-top: 16px;
}

/* ---- ADS: separación consistente arriba y abajo ---- */
/* 1) Anuncios sueltos dentro del contenido (tu caso principal) */
.resultado ins.adsbygoogle {
  display: block !important;
  margin: 22px auto 26px !important;
  clear: both;
}

/* Caso del anuncio 728x90 que tienes inline-block */
.resultado ins.adsbygoogle[style*="inline-block"] {
  display: block !important;
}

/* 2) El contenedor superior (#adsense-container) */
#adsense-container {
  display: flex;
  justify-content: center;
  margin: 22px 0 26px !important;
}

/* SEO/Accesibilidad: oculto visualmente y SIN ocupar espacio aunque haya estilos globales */
/* SR-ONLY sin espacio real */
.sr-only {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* mata márgenes globales dentro */
.sr-only * {
  margin: 0 !important;
  padding: 0 !important;
}

/* Si el contenedor de ads está vacío, que NO deje espacio */
#adsense-container:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}