/* =========================================
   STYLE.CSS para Carlota Tarot (Versión Definitiva)
   ========================================= */

/* --- VARIABLES Y RESET --- */
:root {
    --color-background: #fdfaf6;
    --color-text: #312e2b;
    --color-primary: #d9534f;
    --color-accent: #c9a87c;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 19px;
}

/* --- CONTENEDORES Y ESTRUCTURA --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 0;
}
.text-center { text-align: center; }
.section-intro-text { max-width: 75ch; margin: 0 auto 3rem auto; }
.bg-soft { background-color: #f8f3ed; }

/* --- TIPOGRAFÍA --- */
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin-bottom: 1.5rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3rem); color: var(--color-primary); }
h2 { font-size: clamp(1.8rem, 4vw, 2.2rem); color: var(--color-primary); }
h3 { font-size: 1.5rem; color: var(--color-accent); }
p, li { margin-bottom: 1rem; max-width: 65ch; }
ul.custom-list { list-style: none; padding-left: 0; }
ul.custom-list li { position: relative; padding-left: 2rem; }
ul.custom-list li::before {
    content: '♡';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.2rem;
    line-height: 1.5;
}
strong { font-weight: 700; }

/* --- INTRO BANNER --- */
.intro-banner {
    background-color: #f5f0e9;
    padding: 3rem 0;
    border-bottom: 1px solid #e9e0d4;
}
.intro-banner__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}
.intro-banner__image {
    width: 300px; height: 300px; border-radius: 50%; object-fit: cover;
    border: 5px solid white; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.intro-banner__subtitle { font-size: 1.1rem; font-weight: 300; max-width: 60ch; }

/* --- BOTONES DE LLAMADA --- */
.cta-section { background-color: #fff; }
.cta-section .container { padding: 2.5rem 0; }
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.cta-button {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 1.5em 1em; border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    /* ESTILOS POR DEFECTO PARA FONDO CLARO */
    background-color: #ffffff;
    border: 1px solid #e0d8cc;
    color: var(--color-text);
}
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.cta-button__title { font-weight: 700; }
.cta-button__number { font-size: 1.2rem; font-weight: 700; margin: 0.2rem 0; color: var(--color-primary); }
.cta-button__subtext { font-size: 0.8rem; color: #777; }
.cta-button--primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}
.cta-button--primary .cta-button__number, .final-cta .cta-button--primary .cta-button__number { color: white; }
.cta-button--primary .cta-button__subtext, .final-cta .cta-button--primary .cta-button__subtext { color: rgba(255,255,255,0.8); }

/* --- LAYOUTS DE SECCIÓN --- */
.spotlight { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.how-it-works__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 3rem; }
.how-it-works__step { padding: 2rem; border-radius: 8px; background-color: white; border: 1px solid #e9e0d4; }
.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.testimonial { background-color: #ffffff; padding: 2rem; border-radius: 8px; border-left: 5px solid var(--color-accent); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.testimonial blockquote { font-style: italic; border: none; margin: 0 0 1rem 0; padding: 0; }
.testimonial footer { font-weight: 700; }
.faq dl { margin-top: 2rem; }
.faq dt { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-top: 2rem; }
.faq dd { margin-left: 0; padding-left: 1.5rem; border-left: 2px solid var(--color-accent); }

/* --- SECCIÓN CTA FINAL (FONDO OSCURO) --- */
.final-cta { background-color: var(--color-text); color: white; }
.final-cta h2 { color: var(--color-primary); }
/* SOBRESCRIBIR ESTILOS DE BOTÓN PARA FONDO OSCURO */
.final-cta .cta-button {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}
.final-cta .cta-button:hover { background: white; color: var(--color-text); }
.final-cta .cta-button__number { color: var(--color-primary); }
.final-cta .cta-button__subtext { color: rgba(255,255,255,0.7); }
.final-cta .cta-button--primary { background: var(--color-primary); border-color: var(--color-primary); }
.final-cta .cta-button--primary:hover { background-color: #e87b77; }


/* --- FOOTER --- */
footer { background-color: #312e2b; color: rgba(255,255,255,0.7); padding: 1rem 1rem; text-align: center; }
.footer-nav { list-style: none; padding: 0; margin: 2rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
.footer-nav a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s ease; font-size: 0.9em; }
.footer-nav a:hover { color: white; }
.legal-text { font-size: 0.8rem; opacity: 0.6; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); max-width: 800px; margin: 0 auto; }

/* --- ANIMACIONES Y RESPONSIVIDAD --- */
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }
@media (min-width: 768px) {
    .intro-banner__content { grid-template-columns: auto 1fr; gap: 3rem; text-align: left; }
    .spotlight { grid-template-columns: 1fr 1fr; }
    .spotlight.reverse .text { grid-column: 1; grid-row: 1; }
    .spotlight.reverse .image-container { grid-column: 2; grid-row: 1; }
    .how-it-works__grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
     .intro-banner__content { text-align: center; }
     .container { padding: 3rem 0; }
}