/* Variables CSS para colores */
:root {
    --primary-color: #4A90E2; /* Azul vibrante */
    --secondary-color: #50E3C2; /* Verde azulado */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-color: #f9f9f9;
    --card-background: #ffffff;
    --header-background: linear-gradient(135deg, #4A90E2, #50E3C2); /* Degradado */
    --footer-background: #333;
    --border-color: #eee;
    --hover-color: #3a7bd5; /* Un azul más oscuro para el hover */
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabecera Hero */
.hero {
    background: var(--header-background);
    color: var(--light-text-color);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    color: var(--light-text-color);
}

/* Navegación */
nav {
    background: var(--card-background);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 0;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

nav ul li a .fas {
    margin-right: 8px;
    color: var(--primary-color);
}

/* Secciones de Contenido */
main {
    padding: 40px 0;
}

.card {
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    color: var(--primary-color);
    font-size: 1.6em;
    margin-top: 25px;
    margin-bottom: 15px;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

ul li::before {
    content: '\f00c'; /* Icono de check mark de FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Iconos dentro de listas */
ul li .fas {
    margin-right: 10px;
    color: var(--primary-color); /* Color para iconos específicos */
}

/* Estilos de imágenes */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.responsive-img:hover {
    transform: scale(1.02);
}

.image-gallery {
    text-align: center;
}

/* Contacto */
#contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: var(--hover-color);
}

/* Footer */
footer {
    background: var(--footer-background);
    color: var(--light-text-color);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* Estilos específicos para secciones */
.feature-category {
    margin-bottom: 30px;
    padding: 20px;
    border-left: 4px solid var(--secondary-color);
    background-color: rgba(74, 144, 226, 0.05); /* Ligeramente más claro */
    border-radius: 8px;
}

.feature-category h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.instruction-step {
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.instruction-step:last-child {
    border-bottom: none;
}

.instruction-step h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.instruction-step h3 .fas {
    font-size: 1.2em;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    nav ul li a {
        font-size: 0.9em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }
}
