/* --- Estilos Generales --- */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h2, h3 {
    color: #333;
}

/* --- Encabezado y Navegación --- */
.header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007BFF;
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navigation ul li {
    margin-left: 20px;
}

.navigation a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: #007BFF;
}

/* --- Sección Hero --- */
.hero {
    background: linear-gradient(rgba(0, 80, 255, 0.8), rgba(0, 50, 200, 0.8)), url('https://picsum.photos/seed/hero-bg/1920/1080') no-repeat center center/cover;
    color: #fff;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: #ffc107;
    color: #333;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: #e0a800;
}

/* --- Secciones Generales --- */
.features, .contact, .magazines {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

/* --- Sección de Servicios (con Iconos) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.icon-container {
    background-color: #007BFF;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 36px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Sección de Revistas --- */
.magazines {
    background-color: #fff;
}

.magazines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-content: center;
}

.magazine-card {
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.magazine-card img {
    width: 100%;
    height: auto;
    display: block;
}

.magazine-info {
    padding: 20px;
}

.magazine-info h3 {
    font-size: 1.4rem;
    margin-top: 0;
}

.download-button {
    display: inline-block;
    margin-top: 15px;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #0056b3;
}


/* ===== ESTILOS AÑADIDOS ===== */
.view-all-container {
    margin-top: 50px;
    text-align: center;
}

.view-all-button {
    background: transparent;
    color: #007BFF;
    border: 2px solid #007BFF;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.view-all-button:hover {
    background: #007BFF;
    color: #fff;
}
/* ===== FIN DE ESTILOS AÑADIDOS ===== */


/* --- Sección de Contacto --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

/* --- Pie de Página --- */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}