/* =====================================================
   RESET / FIX GLOBAL (IMPRESCINDIBLE)
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =====================================================
   VARIABLES
   ===================================================== */
:root {
    --brown: #8f604e;
    --green: #9b8835;
}

/* =====================================================
   GENERAL
   ===================================================== */
body.bg-main {
    background: var(--brown);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 28px;
    background: white;
}

.logo {
    height: 190px;
	margin-left: 25px;   /* ⬅️ mueve el logo a la derecha */
	animation: floatBirds 6s ease-in-out infinite;
}

@keyframes floatBirds {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

.header-center {
    text-align: center;
}

/* Animación */
.animate-header {
    animation: fadeUp 1.2s ease-out forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Marca */
.brand {
    font-family: 'Playfair Display', serif;
    font-size: 3.6em;
    margin: 0;
    color: var(--brown);
    letter-spacing: 1px;
}

.brand-line {
    width: 120px;
    height: 3px;
    background: var(--brown);
    margin: 12px auto 14px auto;
    border-radius: 2px;
}

/* Textos header */
.main-title {
    font-size: 1.6em;
    margin: 6px 0;
    font-weight: 400;
    color: #000;
}

.subtitle {
    font-size: 1.05em;
    color: var(--green);
    font-weight: 300;
}

/* Derecha header */
.header-right {
    text-align: right;
    font-size: 0.95em;
}

.socials img {
    height: 22px;
    margin-left: 8px;
    cursor: pointer;
}

.whatsapp {
    height: 22px;
    width: 22px;
    vertical-align: middle;
    margin-right: 6px;
}


/* =====================================================
   INDEX · MÓDULOS
   ===================================================== */
.modules {
    padding: 40px;
    max-width: 1750px;   /* ⬅️ CLAVE */
    margin: 0 auto;
}

/* 🔑 CONTENEDOR BLANCO DEL MÓDULO (AJUSTADO) */
.module {
    background: white;
    padding: 24px;
    border-radius: 18px;
    margin: 0 auto 28px auto;     /* centrado */
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 20px;
    width: 100%;
}

.module-main-title {
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 8px;
}

.highlights {
    font-weight: 500;
    color: var(--green);
    margin-bottom: 10px;
}

.module-left img.module-media {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;   /* misma proporción que el vídeo */
    object-fit: contain;    /* igual que el vídeo */
    display: block;
    border-radius: 12px;
    background: transparent;
}


/* Derecha módulo */
.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    padding: 4px 0;
}

.price {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--brown);
    margin-top: 18px;
}

.buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.module-left img.module-media {
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;      /* EXACTAMENTE igual que el vídeo */
    object-fit: cover;         /* o contain si quieres verla entera */
    display: block;
    border-radius: 12px;
    background: transparent;
}


/* =====================================================
   BOTONES
   ===================================================== */
.btn {
    display: inline-block;
    padding: 11px 22px;
    background: var(--brown);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.btn.secondary {
    background: var(--green);
}

.btn.buy {
    background: #000;
}

.btn.full {
    width: 100%;
    display: block;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}

/* =====================================================
   CHECKOUT / FORMULARIOS
   ===================================================== */
.checkout {
    max-width: 520px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
}

.checkout h1 {
    text-align: center;
    color: var(--brown);
}

.checkout-intro {
    font-size: 1.05em;
    margin-bottom: 15px;
}

.checkout-info {
    font-size: 0.95em;
    margin-bottom: 20px;
}

.checkout-info-list {
    margin-left: 18px;
    margin-bottom: 15px;
}

.checkout-box {
    background: #f7f5f2;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.checkout-box ul {
    margin: 8px 0 0 18px;
}

.checkout-note {
    font-size: 0.9em;
    margin: 15px 0;
    color: #555;
}

.checkout form {
    display: flex;
    flex-direction: column;
}

.checkout label {
    margin-top: 12px;
    font-weight: 500;
}

.checkout input,
.checkout textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin-top: 4px;
}

/* =====================================================
   PAGO
   ===================================================== */
.payment-box {
    background: #f7f5f2;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.payment-box h2 {
    margin-top: 0;
    color: var(--brown);
}

.payment-box.bizum {
    border-left: 6px solid var(--green);
}

.payment-box ol {
    margin-left: 20px;
}

.bizum-note {
    font-size: 0.9em;
    margin-top: 10px;
    color: #555;
}

/* =====================================================
   PÁGINA MÓDULO
   ===================================================== */
.module-page {
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    padding: 35px;
    border-radius: 20px;
    overflow: hidden;
}

.module-page h1 {
    font-family: 'Playfair Display', serif;
    color: var(--brown);
}

.module-intro {
    margin-bottom: 25px;
    font-size: 1.05em;
}

.module-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

/* Vídeos */
.module-videos video {
    width: 100%;
    height: 260px;
    margin-bottom: 15px;
    border-radius: 12px;
    object-fit: cover;
}

/* Compra */
.module-buy {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-box {
    background: #f7f5f2;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
}

.price-label {
    font-size: 0.9em;
    color: #555;
}

.price-amount {
    font-size: 2em;
    font-weight: bold;
    color: var(--brown);
}

.payment-info ul {
    padding-left: 18px;
}

.payment-info li {
    margin-bottom: 10px;
}

/* Formulario módulo */
.contact-box {
    background: #f7f5f2;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
}

.contact-box form input,
.contact-box form textarea,
.contact-box form button {
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 10px;
}

/* =========================
   FOOTER · ENLACES
   ========================= */
.footer {
    text-align: center;
    padding: 16px;
    color: white;
}

.footer a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
    color: var(--green);
}

/* =========================
   ENLACES EN TEXTO (INLINE)
   ========================= */
.inline-link {
    color: var(--green);
    font-weight: 500;
    text-decoration: underline;
}

.inline-link:hover {
    color: #8f6f3f; /* o una variación del verde */
}
/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {

    .header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-right {
        text-align: center;
        margin-top: 10px;
    }

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

   .module-left video {
        width: 100%;
        height: auto;
        aspect-ratio: 21 / 9;
        max-width: 100%;
        display: block;
    }
    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-videos video {
        height: 220px;
    }

    .brand {
        font-size: 2.6em;
    }
}

/* =========================
   DESCRIPCIÓN MÓDULO
   ========================= */
.module-description {
    background: #f7f5f2;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95em;
    line-height: 1.5;
}

/* =========================
   PRECIO MÁS ESTRECHO
   ========================= */
.price-box.small {
    max-width: 260px;
    align-self: flex-start;
}

.price-box.full-width {
    width: 100%;
}

/* =========================================
   AJUSTE DEFINITIVO ANCHO VÍDEOS INDEX
   ========================================= */
@media (min-width: 900px) {

    .module-left video,
    .module-left img.module-media {
        width: 100%;
        max-width: clamp(720px, 90%, 1100px);
        margin-top: 8px;
        margin-left: 0;
        margin-right: auto;
        display: block;
    }

    .highlights {
        margin-bottom: 6px;
    }
}

/* Título contenido del módulo */
.content-list-title {
    color: var(--brown);
    font-weight: 600;
}
@media (max-width: 480px) {

    .module {
        padding: 16px;
        border-radius: 14px;
    }

    .content-list {
        padding-left: 0;
        margin: 0;
    }

    .content-list li {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        font-size: 0.95em;
        line-height: 1.4;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
    }

    .buttons .btn {
        width: 100%;
        text-align: center;
    }

    .price {
        font-size: 1.25em;
        margin-top: 12px;
    }
}
/* =========================
   BOTÓN FLOTANTE WHATSAPP
   ========================= */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}
/* =========================
   BANNER DE COOKIES
   ========================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    color: #000;
    padding: 14px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    display: none;
    z-index: 9999;
}

.cookie-banner p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.cookie-banner a {
    color: var(--brown);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn.small {
    padding: 6px 14px;
    font-size: 0.85em;
}

/* Móvil */
@media (max-width: 480px) {
    .cookie-banner {
        font-size: 0.85em;
    }

    .cookie-buttons {
        flex-direction: column;
    }
}
/* =========================
   CHECKBOX LEGAL - FIX FINAL
   ========================= */
.legal-check {
    width: 100%;
    margin: 18px 0 10px 0;
    text-align: left !important;
}

.legal-check label {
    display: grid !important;
    grid-template-columns: 18px 1fr;
    column-gap: 10px;
    align-items: start;
    width: 100%;
    text-align: left !important;
    justify-content: start !important;
}

.legal-check input[type="checkbox"] {
    margin-top: 4px;
    justify-self: start;
}

.legal-check span {
    display: block;
    line-height: 1.4;
}

.legal-check a {
    color: var(--brown);
    text-decoration: underline;
}
/* =========================================
   ESTILO UNIFICADO FORMULARIOS
   ========================================= */

form input,
form textarea {
    width: 100%;
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95em;
    color: #333;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Placeholder */
form input::placeholder,
form textarea::placeholder {
    color: #888;
    font-size: 0.9em;
}

/* Focus */
form input:focus,
form textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(155, 136, 53, 0.15);
}

/* Textarea */
form textarea {
    min-height: 110px;
    resize: vertical;
}

/* centrar */
.final-message {
	display: block;
    text-align: center;
    font-weight: 600;
    margin-top: 1.5rem;
}
/* =========================
   MENÚ SUPERIOR HEADER
   ========================= */
.top-menu {
    margin-top: 6px;
    text-align: right;
}

.top-menu a {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--brown);       /* mismo marrón del logo */
    text-decoration: none;    /* quita subrayado */
}

.top-menu a:hover {
    text-decoration: underline;
}
@media (max-width: 900px) {
    .top-menu {
        text-align: center;
        margin-top: 10px;
    }
}
/* FORZAR COLOR DEL ENLACE DEL MENÚ (evita azul por defecto) */
.header-right .top-menu a,
.header-right .top-menu a:visited {
    color: var(--brown) !important;
    text-decoration: none !important;
}

.header-right .top-menu a:hover {
    text-decoration: underline !important;
}
/* =========================
   CONTACTO HEADER (EMAIL + WHATSAPP)
   ========================= */
.contact-lines {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end; /* derecha */
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: #000;
}

.contact-line a {
    color: #000;
    text-decoration: none;
}

.contact-line a:hover {
    text-decoration: underline;
}

.contact-icon {
    width: 22px;
    height: 22px;
}

/* WhatsApp un poco más grande */
.whatsapp-icon {
    width: 19px;
    height: 19px;
}
/* =========================
   ICONOS CONTACTO · MÓVIL
   ========================= */
@media (max-width: 900px) {

    .contact-icon {
        width: 15px;
        height: 15px;
    }

    .whatsapp-icon {
        width: 16px;
        height: 16px;
    }

    .contact-line {
        font-size: 0.9em;
    }
}
/* =========================
   CONTACTO HEADER · MÓVIL
   ========================= */
@media (max-width: 900px) {

    .contact-lines {
        align-items: center;     /* centra email y teléfono */
    }

    .contact-line {
        justify-content: center; /* centra icono + texto */
        text-align: center;
    }
}
/* =========================
   ENLACES DESTACADOS · MÓDULO
   ========================= */
.resource-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(155, 136, 53, 0.12); /* verde suave */
    color: var(--green);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.resource-link .icon {
    font-size: 1.2em;
}

.resource-link:hover {
    background: rgba(155, 136, 53, 0.22);
    transform: translateY(-1px);
}
/* =========================
   ENLACES DESTACADOS · MÓDULO
   ========================= */
.resource-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(155, 136, 53, 0.12);
    color: var(--green) !important;          /* 🔑 */
    font-weight: 500;
    text-decoration: none !important;        /* 🔑 */
    transition: background 0.2s ease, transform 0.2s ease;
}

.resource-link:visited {
    color: var(--green) !important;
}

.resource-link:hover {
    background: rgba(155, 136, 53, 0.22);
    transform: translateY(-1px);
}

.resource-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
/* =========================
   ENLACES DESTACADOS · MÓDULO (FIX FINAL)
   ========================= */

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* El enlace es el botón */
.resource-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(155, 136, 53, 0.12);
    color: var(--green) !important;
    text-decoration: none !important;
    font-weight: 500;
}

/* Estados del enlace: nunca azul */
.resource-link:visited,
.resource-link:active,
.resource-link:hover {
    color: var(--green) !important;
    text-decoration: none !important;
}

/* ICONOS SVG — AQUÍ ESTABA EL PROBLEMA */
.resource-icon {
    width: 20px;        /* 🔑 tamaño real */
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    display: block;
}

/* Hover suave */
.resource-link:hover {
    background: rgba(155, 136, 53, 0.22);
    transform: translateY(-1px);
}
/* Evita scroll horizontal en móvil */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
/* =========================
   FIX MÓVIL · DESBORDAMIENTO
   ========================= */
@media (max-width: 900px) {

  .modules {
    padding: 16px;   /* antes 40px */
  }

  .module {
    padding: 16px;   /* antes 24px */
  }

}
.btn-inicio {
    padding: 6px 14px;
    background-color: #9b6b55; /* marrón corporativo */
    color: #fff !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-inicio:hover {
    background-color: #7f5442;
    text-decoration: none;
}

