/* Fuente Shopify */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* RESET */
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #f7faf7;
    font-family: 'Inter', sans-serif;
    color: #222;
}

/* ======================================
      HEADER ESTILO SHOPIFY BOTANIE
   ====================================== */

.site-header {
    background-color: #f4f4f0; /* Franja beige */
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;           /* Altura perfecta */
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    height: 68px;              /* ALTURA EXACTA */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* LOGO CENTRADO */
.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-logo img {
    height: 68px !important;   /* TAMAÑO EXACTO SHOPIFY */
    width: auto;
}

/* LATERALES */
.header-left-placeholder {
    width: 160px;
}

.header-nav {
    width: 160px;
    text-align: right;
}

.header-nav a {
    font-size: 15px;
    font-weight: 500;
    color: #1e3d35;
    text-decoration: none;
}

.header-nav a:hover {
    text-decoration: underline;
}

/* Ajuste fino para que el enlace no se solape con el logo */
.header-nav {
    display: flex;
    align-items: center;   /* baja el texto hasta centrarse */
    height: 68px;          /* misma altura que el header */
    justify-content: flex-end;
}

/* ======================================
      VERSIÓN MÓVIL
   ====================================== */

@media (max-width: 720px) {

    .header-inner {
        height: 60px;
        padding: 8px 0;
    }

    .header-logo img {
        height: 55px !important;
    }

    .header-left-placeholder,
    .header-nav {
        display: none;
    }

    .header-logo {
        position: relative;
        left: unset;
        transform: none;
        margin: 0 auto;
    }
}

/* ======================================
      CONTENIDO
   ====================================== */

.main-wrapper {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tarjeta principal del formulario */
.form-card {
    max-width: 520px;
    width: 100%;
    padding: 28px 26px 26px 26px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

/* H1 HERO */
.form-title {
    text-align: center;
    color: #1e3d35;
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
}

/* Subtítulo hero */
.form-subtitle {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Inputs */
label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #c8c8c8;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 15px;
    background-color: #fff;
}

input::placeholder {
    color: #aaaaaa;
    font-size: 13px;
}

input:focus {
    outline: none;
    border-color: #1e3d35;
    box-shadow: 0 0 0 1px rgba(30,61,53,0.1);
}

/* Checkbox legal */
.checkbox-legal {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    margin: 4px 0 18px 0;
    line-height: 1.4;
}

.checkbox-legal input[type="checkbox"] {
    margin-top: 2px;
}

.checkbox-legal a {
    color: #1e3d35;
    text-decoration: underline;
}

.checkbox-legal a:hover {
    text-decoration: none;
}

/* Botón genérico (fallback) */
button {
    width: 100%;
    padding: 14px;
    background: #1e3d35;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.05s ease;
}

button:hover {
    background: #285047;
}

/* Botón CTA principal */
.btn-cta {
    background: linear-gradient(135deg, #1e3d35, #2f6d5b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 15px;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #285047, #38826b);
    transform: translateY(-1px);
}

/* Texto bajo el botón */
.cta-helper {
    margin-top: 10px;
    font-size: 12px;
    color: #777;
    text-align: center;
}

/* Mensajes */
#info-msg,
#error-msg,
#success-msg {
    margin-bottom: 10px;
    display: none;
    font-size: 14px;
}

#info-msg { color: #555; }
#error-msg { color: #c51111; }
#success-msg { color: #2b8b4b; }

/* Loader */
.loader {
    display: none;
    margin: 0 auto 15px auto;
    border: 3px solid #eee;
    border-top: 3px solid #1e3d35;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ======================================
      BLOQUE BENEFICIOS
   ====================================== */

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e3d35;
    text-align: center;
    margin-bottom: 18px;
}

.benefits-section {
    max-width: 800px;
    width: 100%;
    margin: 40px auto 24px auto;
    padding: 0 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

.benefit-item {
    font-size: 14px;
    color: #444;
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}

.benefit-item::before {
    content: "\2022";
    position: absolute;
    left: 4px;
    top: 0;
    color: #1e3d35;
    font-weight: 700;
}

/* ======================================
      BLOQUE FAQ
   ====================================== */

.faq-section {
    max-width: 800px;
    width: 100%;
    margin: 10px auto 0 auto;
    padding: 24px 16px 0 16px;
    border-top: 1px solid #e0e0e0;
}

.faq-item {
    margin-bottom: 18px;
}

.faq-item h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e3d35;
    margin-bottom: 4px;
}

.faq-item p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid #e5e5e5;
    background-color: #ffffff;
    padding: 25px 20px;
    font-size: 13px;
    color: #666;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-title {
    font-weight: 600;
    color: #1e3d35;
    margin-bottom: 8px;
}

.footer-links a {
    display: block;
    margin-bottom: 4px;
    text-decoration: none;
    color: #666;
}

.footer-links a:hover {
    color: #1e3d35;
}

.footer-bottom {
    max-width: 1200px;
    margin: 15px auto 0;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ======================================
      RESPONSIVE
   ====================================== */

@media (max-width: 720px) {

    .main-wrapper {
        margin: 24px auto 40px auto;
        padding: 0 14px;
    }

    .form-card {
        padding: 22px 18px 20px 18px;
    }

    .form-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 18px;
    }

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

    .footer-inner,
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    /* === FIX: Separar LOGO y TEXTO para que no se solapen === */
    .header-nav {
        position: relative;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 68px; /* misma altura del header */
        padding-top: 10px;
    }

    /* Aumentar separación del logo */
    .header-logo {
        margin-top: 10px !important; /* Baja un poco el logo */
    }

    /* Opcional: reducir altura si está muy grande */
    .header-logo img {
        height: 60px !important;
    }
}
