/* ==========================================================================
   1. HEADER Y NAVEGACIÓN COMPARTIDA
   ========================================================================== */

.site-header { background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid #e8e7e3; position: sticky; top: 0; z-index: 20; }
.header-inner { align-items: center; display: grid; grid-template-columns: 1fr auto 1fr; min-height: 72px; }
.brand { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.2em; }
.brand span { color: var(--gold, #b89a5b); }
.header-actions { align-items: center; display: flex; gap: 18px; }
.header-actions a { align-items: center; display: flex; font-size: 0.68rem; gap: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.header-actions .icon { border: 1px solid var(--ink, #30332f); border-radius: 50%; display: grid; font-size: 0.65rem; height: 20px; place-items: center; width: 20px; }
.shipping-tag { color: var(--gold-dark, #97793f); font-weight: 700; }
.menu-toggle { background: none; border: 0; display: none; font-size: 1.3rem; justify-self: end; }
.main-nav { display: flex; gap: 34px; justify-content: center; min-height: 41px; }
.main-nav a { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; padding-top: 7px; text-transform: uppercase; text-decoration: none; color: #30332f; }
.main-nav a:hover, .main-nav [aria-current='page'] { color: var(--gold-dark, #97793f); }

/* ==========================================================================
   2. HERO (FLOR DE LA VIDA)
   ========================================================================== */

.development-hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: 240px;
  padding: 45px 0;
  overflow: hidden;
  background-color: #f9f7f2;
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0%, rgba(246, 241, 230, 0.85) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='242.487' viewBox='0 0 140 242.487'%3E%3Cdefs%3E%3ClinearGradient id='gold' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23b8882d' stop-opacity='0.65'/%3E%3Cstop offset='50%25' stop-color='%23fae19c' stop-opacity='0.85'/%3E%3Cstop offset='100%25' stop-color='%23c59a3f' stop-opacity='0.65'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23gold)' stroke-width='1.8'%3E%3Ccircle cx='-70' cy='-121.243' r='140'/%3E%3Ccircle cx='70' cy='-121.243' r='140'/%3E%3Ccircle cx='210' cy='-121.243' r='140'/%3E%3Ccircle cx='-140' cy='0' r='140'/%3E%3Ccircle cx='0' cy='0' r='140'/%3E%3Ccircle cx='140' cy='0' r='140'/%3E%3Ccircle cx='280' cy='0' r='140'/%3E%3Ccircle cx='-70' cy='121.243' r='140'/%3E%3Ccircle cx='70' cy='121.243' r='140'/%3E%3Ccircle cx='210' cy='121.243' r='140'/%3E%3Ccircle cx='-140' cy='242.487' r='140'/%3E%3Ccircle cx='0' cy='242.487' r='140'/%3E%3Ccircle cx='140' cy='242.487' r='140'/%3E%3Ccircle cx='280' cy='242.487' r='140'/%3E%3Ccircle cx='-70' cy='363.73' r='140'/%3E%3Ccircle cx='70' cy='363.73' r='140'/%3E%3Ccircle cx='210' cy='363.73' r='140'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-position: center center, center center;
  background-size: cover, 140px 242.487px;
}

.development-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.development-hero-copy { max-width: 620px; }

.development-hero h1 {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color: #1e241f;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.development-hero p:not(.eyebrow) {
  color: #3f443e;
  font-size: 1.05rem;
  line-height: 1.6;
}

.development-hero-badge { display: flex; justify-content: center; align-items: center; }

.hero-logo-img { max-width: 200px; max-height: 200px; width: auto; height: auto; object-fit: contain; display: block; }

/* ==========================================================================
   3. SECCIÓN DE TEMAS / PDFS (DISEÑO PREMIUM)
   ========================================================================== */

.topics-section { padding-block: 80px; }

.topics-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(3, 1fr);
}

.topic-card {
  background: #ffffff;
  border: 1px solid #e3e4e0;
  border-radius: 12px; /* Esquinas más suaves y modernas */
  display: flex;
  flex-direction: column;
  padding: 35px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(48, 51, 47, 0.04); /* Sombra más amplia y delicada */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Detalle sutil: un pequeño resplandor dorado en la esquina superior derecha */
.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(184, 154, 91, 0.08), transparent 70%);
  pointer-events: none;
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(48, 51, 47, 0.08);
}

.topic-card h2 {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 12px 0;
  line-height: 1.25;
  color: #1e241f;
  position: relative;
  z-index: 2;
}

.topic-card p {
  color: #5c615b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 24px 0;
  flex: 1; /* Empuja el botón o etiqueta hacia el fondo */
  position: relative;
  z-index: 2;
}

/* Botón cuando SÍ hay PDF (Contorno dorado que se rellena al pasar el mouse) */
.topic-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid var(--gold, #b89a5b);
  color: var(--gold-dark, #97793f);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  transition: all 0.25s ease;
  position: relative;
  z-index: 2;
}

.topic-pdf-link:hover {
  background-color: var(--gold, #b89a5b);
  color: #ffffff;
}

/* Etiqueta cuando NO hay PDF (Píldora gris claro) */
.topic-pending {
  display: inline-flex;
  align-items: center;
  background-color: #f2f2f0;
  color: #8c8f8b;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: auto;
  align-self: flex-start;
}

.topics-empty { color: #5c615b; padding-block: 40px; text-align: center; }

/* ==========================================================================
   4. FOOTER Y SECCIÓN DE BENEFICIOS
   ========================================================================== */
   /* ==========================================================
   CORRECCIÓN DEL FORMULARIO DE CONTACTO EN EL FOOTER
   ========================================================== */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: end;
    margin-top: 30px;
    margin-bottom: 50px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a4d47;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: #f8f7f3;
    border: 1px solid #d4d8cf;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #30332f;
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #b89a5b;
}

/* El campo de mensaje y el botón ocupan todo el ancho de abajo */
.contact-form .field-full {
    grid-column: 1 / -1;
}

.contact-form button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 14px 28px;
    background-color: #b89a5b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form button[type="submit"]:hover {
    background-color: #97793f;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

.benefits-strip { background: var(--ink, #30332f); color: #ffffff; padding-block: 38px; }
.benefits-grid { display: grid; gap: 45px; grid-template-columns: repeat(3, 1fr); }
.benefits-grid article { align-items: center; display: flex; gap: 16px; }
.benefit-icon { border: 1px solid var(--gold, #b89a5b); border-radius: 50%; color: #dfc588; display: grid; flex: 0 0 auto; font-size: 1.4rem; height: 46px; place-items: center; width: 46px; }
.benefits-grid h3 { font-family: var(--serif, 'Playfair Display', serif); font-size: 1.2rem; font-weight: 400; margin: 0; }
.benefits-grid p { color: #cdcfca; font-size: 0.78rem; margin: 2px 0 0; }

.site-footer { background: #262925; color: #e5e6e0; padding-top: 75px; }
.footer-grid { display: grid; gap: 48px; grid-template-columns: 1.45fr 0.75fr 1fr 1.2fr; }
.footer-brand .brand { display: inline-block; margin-bottom: 24px; }
.site-footer h2 { color: #fff; font-family: var(--sans, sans-serif); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; margin: 0 0 17px; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li, .site-footer p { color: #c7c9c4; font-size: 0.8rem; margin-bottom: 9px; }
.site-footer a { color: #c7c9c4; text-decoration: none; }
.site-footer a:hover { color: #e2c78c; }
.contact-list { margin-bottom: 19px !important; }
.social-links { display: flex; gap: 10px; }
.social-links a { border: 1px solid #70736b; border-radius: 50%; display: grid; font-size: 0.85rem; height: 28px; place-items: center; width: 28px; }
.footer-notice-title { margin-top: 30px !important; }
.legal-notice { color: #ddc489 !important; font-size: 0.65rem !important; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #484b46; color: #a7aaa3; font-size: 0.7rem; margin-top: 58px; padding-block: 18px; }

/* ==========================================================================
   5. RESPONSIVE / MEDIA QUERIES GENERALES
   ========================================================================== */

@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
  .shipping-tag { display: none; }
  .benefits-grid { gap: 25px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .header-actions a span:last-child { display: none; }
  .header-actions { gap: 10px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .site-header:has(.menu-toggle[aria-expanded='true']) .main-nav { display: flex; flex-direction: column; gap: 0; padding: 0 16px 16px; }
  .main-nav a { padding: 10px 0; }
  
  .development-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .development-hero-badge { margin-top: 20px; }
  
  .topics-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 32px; grid-template-columns: 1fr; }
  .site-footer { padding-top: 55px; }
}

@media (max-width: 500px) {
  .development-hero h1 { font-size: 2.8rem; }
  .development-hero { padding: 40px 0; min-height: 220px; }
}