/* Variables de Colores */
:root {
    --primary-red: #E00000; /* Rojo del logo */
    --secondary-black: #000000; /* Negro del logo */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --background-light: #ffffff;
    --background-dark: #1a1a1a;
    --border-color: #e0e0e0;
}

/* Reset Básico y Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
}

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

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-black);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Elimina espacio extra debajo de las imágenes */
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: var(--secondary-black);
    text-align: center;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
    text-align: center;
}

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

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-light);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--secondary-black);
    border-color: var(--secondary-black);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.btn-hero {
    font-size: 1.1em;
    padding: 15px 30px;
    margin-top: 20px;
}

/* Header */
header {
    background-color: var(--background-light);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: auto; /* Ajusta el tamaño del logo */
    width: 300px;
}

header nav ul {
    list-style: none;
    display: flex;
    margin-right: 20px;
}

header nav ul li {
    margin-left: 25px;
}

header nav ul li a {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.1em;
}

header nav ul li a:hover {
    color: var(--primary-red);
}

.hamburger-menu {
    display: none; /* Oculto por defecto en desktop */
    font-size: 1.8em;
    cursor: pointer;
    color: var(--secondary-black);
}

/* Hero Section */
.hero-section {
    background: url('hero-background.jpg') no-repeat center center/cover; /* Imagen de fondo */
    color: var(--text-light);
    text-align: center;
    padding: 100px 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Capa oscura para que el texto resalte */
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* Secciones Generales */
section {
    padding: 80px 0;
    text-align: center;
}

section:nth-child(even) { /* Para alternar colores de fondo, si quieres */
    background-color: #f9f9f9;
}

/* About Section */
.about-section .container {
    max-width: 1000px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.about-text {
    flex: 2;
}

.about-text h2 {
    text-align: left;
    color: var(--primary-red);
}
.about-text p {
    text-align: left;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-image {
    flex: 1;
}
.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/* Services Section */
.services-section {
    background-color: var(--primary-red);
    color: var(--text-light);
}

.services-section h2 {
    color: var(--text-light);
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.service-item .icon-large {
    font-size: 3em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-item h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-item p {
    color: var(--text-light);
    font-size: 0.95em;
    text-align: center;
}

/* Latest News Section */
.latest-news-section h2 {
    color: var(--primary-red);
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h3 {
    padding: 15px;
    font-size: 1.4em;
    text-align: left;
    margin-bottom: 0;
}

.news-item h3 a {
    color: var(--secondary-black);
}

.news-item p {
    padding: 0 15px 15px;
    font-size: 0.9em;
    color: #555;
    text-align: left;
}

.news-item .read-more {
    display: block;
    padding: 10px 15px 15px;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 0.95em;
    text-align: right;
}
.news-item .read-more:hover {
    color: var(--secondary-black);
}

/* Social Media Section */
.social-media-section {
    background-color: var(--secondary-black);
    color: var(--text-light);
    padding: 60px 0;
}

.social-media-section h2 {
    color: var(--text-light);
    margin-bottom: 30px;
}

.social-icons {
    margin-top: 30px;
    margin-bottom: 20px;
}

.social-icons a {
    color: var(--text-light);
    font-size: 2.5em;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

/* Contact Section */
.contact-section h2 {
    color: var(--primary-red);
    margin-bottom: 30px;
}
.contact-section p {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 20px;
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
    text-align: left; /* Alinea el texto a la izquierda */
}
.contact-info p i {
    color: var(--primary-red);
    margin-right: 15px;
    font-size: 1.2em;
}
.contact-info p a {
    color: var(--text-dark);
}
.contact-info p a:hover {
    color: var(--primary-red);
}

.contact-form {
    flex: 2;
    min-width: 300px;
    max-width: 500px;
    padding: 20px;
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Arial', sans-serif;
}

.contact-form textarea {
    resize: vertical; /* Permite redimensionar verticalmente */
}

.contact-form button {
    align-self: flex-start; /* Alinea el botón a la izquierda dentro del formulario */
}


/* Footer */
footer {
    background-color: var(--secondary-black);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 10px;
    color: var(--text-light);
}

footer a {
    color: var(--text-light);
    margin: 0 10px;
}

footer a:hover {
    color: var(--primary-red);
}


/* Media Queries para Responsividad */
@media (max-width: 900px) {
    .hero-section h1 {
        font-size: 3em;
    }
    .hero-section p {
        font-size: 1.2em;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text h2, .about-text p {
        text-align: center;
    }
    .contact-grid {
        flex-direction: column;
        align-items: center;
    }
    .contact-info, .contact-form {
        width: 100%;
        max-width: 500px;
    }
    .contact-info p {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header nav {
        display: none; /* Oculta la navegación normal en móvil */
        flex-direction: column;
        width: 100%;
        background-color: var(--background-light);
        position: absolute;
        top: 80px; /* Debajo del header */
        left: 0;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    header nav.active {
        display: flex; /* Muestra el menú cuando está activo */
    }
    header nav ul {
        flex-direction: column;
        margin-right: 0;
    }
    header nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    header nav .btn {
        margin-top: 20px;
        width: fit-content;
        align-self: center;
    }
    .hamburger-menu {
        display: block; /* Muestra el icono de hamburguesa */
    }

    .hero-section {
        padding: 80px 15px;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1em;
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    section {
        padding: 60px 0;
    }

    .news-grid, .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header .logo img {
        height: 40px;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 0.9em;
    }
    .social-icons a {
        font-size: 2em;
        margin: 0 10px;
    }
    .contact-info p {
        font-size: 0.9em;
    }
}
