/* ========= 1. IMPORTAR FUENTES Y CONFIGURACIÓN BÁSICA ========= */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

/* Asegura que el texto no quede tapado por el header al hacer scroll */
section,
h2 {
    scroll-margin-top: 100px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fdfbf7;
    color: #2d3748;
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

main,
header>div,
footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* ========= 3. TIPOGRAFÍA ========= */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: #1a365d;
    margin-top: 2rem;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 20px;
}

strong {
    color: #2c5282;
}

/* ========= 4. NAVEGACIÓN (Header) ========= */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    /* Para que siempre esté arriba */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
    /* Espacio entre botones */
}

header a {
    text-decoration: none;
    color: #4a5568;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 0.95rem;
}

header a:hover {
    color: #1a365d;
}

/* Ajustes del Logo */
.logo-link img {
    display: block;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* ========= 5. ELEMENTOS VISUALES ========= */
video,
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contenedor de libros horizontal */
.libros-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.libros-container img {
    margin: 0;
}

hr {
    border: 0;
    height: 1px;
    background: #cbd5e0;
    margin: 40px 0;
}

/* ========= 6. TABLAS ========= */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

th {
    background-color: #1a365d;
    color: white;
    padding: 15px;
    text-align: left;
    font-family: 'Playfair Display', serif;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

/* ========= 7. FORMULARIO Y BOTONES ========= */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 20px;
    /* Espacio abajo de cada input */
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
}

button {
    background-color: #1a365d;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s;
}

button:hover {
    background-color: #2a4365;
}

#cierre-ventas {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 40px auto;
}

/* ========= 8. TARJETAS (Recursos y Comunidad) ========= */
.resources-grid,
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Estilo General de Tarjeta */
.card,
.quote-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Efecto Hover */
.card:hover,
.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos específicos RECURSOS */
.card {
    text-align: center;
}

.icon-resource {
    font-size: 3rem;
    color: #1a365d;
    margin-bottom: 15px;
}

.btn-download {
    display: inline-block;
    background-color: #1a365d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-download:hover {
    background-color: #2a4365;
    color: white;
}

.btn-download.disabled {
    background-color: #cbd5e0;
    cursor: not-allowed;
}

/* Estilos específicos COMUNIDAD (Muro) */
.quote-card {
    padding: 30px;
    position: relative;
    text-align: left;
}

.quote-icon {
    font-size: 1.5rem;
    color: #cbd5e0;
    margin-bottom: 15px;
    display: block;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: #2d3748;
    margin-bottom: 20px;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #f7fafc;
    padding-top: 15px;
}

.quote-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0;
    box-shadow: none;
}

.quote-author span {
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: 0.9rem;
    color: #1a365d;
    line-height: 1.2;
}

/* ========= 9. FOOTER ========= */
footer {
    background-color: #1a365d;
    color: white;
    margin-top: 0;
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 100%;
}

footer a {
    color: #90cdf4;
}

footer strong {
    color: #ffffff;
}

/* ========= 10. MÓVIL (RESPONSIVE) ========= */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    main,
    header>div,
    footer,
    #cierre-ventas {
        padding: 15px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}