/* Reset de márgenes y paddings para todos los elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Desplazamiento suave global */
html {
    scroll-behavior: smooth;
}


/* Estilo general del body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Hace que el body ocupe toda la altura de la ventana */
}

/* Contenedor principal para alinear los elementos */
.content-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px; /* Espacio alrededor del contenido */
}

/* Header */
header {
    background-color: #ffffff;
    padding: 20px 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    width: 120px;
}

nav ul {
    list-style-type: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

nav ul li a:hover {
    color: #9b2d91; /* Morado de Hotmart */
}

/* Hero Section */
.hero {
    background-color: #9b2d91;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-top: 10px;
}

/* Secciones */
.secciones {
    margin-top: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 32px;
    color: #9b2d91; /* Morado de Hotmart */
}

.section-title p {
    font-size: 16px;
    color: #666;
}

.secciones-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.seccion-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.seccion-item:hover {
    transform: scale(1.05);
}

.seccion-img img {
    width: 100%;
    height: auto;
}

.seccion-info {
    padding: 20px;
}

.seccion-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.seccion-info p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #666;
}

.btn-option {
    padding: 10px 20px;
    background-color: #9b2d91; /* Morado de Hotmart */
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none; /* Quitar el subrayado */
    display: inline-block; /* Para que el margin funcione correctamente */
}

.btn-option:hover {
    background-color: #7a1a6e; /* Morado más oscuro */
}

.footer {
    text-align: center;
    margin-top: 20px;
}

.footer a {
    font-size: 12px;
    color: #9b2d91;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Footer estilizado */
.footer-container {
    background-color: #9b2d91; /* Morado de Hotmart */
    color: white;
    padding: 20px 0;
    padding-bottom: 60px;
    text-align: center;
    width: 100%;

    margin-top: auto; /* Esto hace que el footer siempre se mantenga en la parte inferior */
}

/* Estilo de los íconos sociales */
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 30px;
    margin: 0 15px;
    text-decoration: none;
}

.social-icons a:hover {
    opacity: 0.7;
}


/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #9b2d91; /* Morado de Hotmart */
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.scroll-to-top:hover {
    background-color: #7a1a6e; /* Morado más oscuro */
}

.scroll-to-top i {
    font-size: 20px;
}

/* Responsive: Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .secciones-list {
        flex-direction: column;
        align-items: center;
    }

    .seccion-item {
        width: 80%;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .seccion-item {
        width: 100%;
    }

    .seccion-info h3 {
        font-size: 20px;
    }

    .seccion-info p {
        font-size: 12px;
    }
}
