/* VARIABLES Y ESTILOS GLOBALES */
:root {
    --color-dark: #414141; /* Gris Oscuro */
    --color-primary: #9b0077; /* Magenta */
    --color-secondary: #ffc200; /* Amarillo Pollito */
    --color-light: #f4f4f4; /* Gris Claro para el texto */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--color-dark);
    color: var(--color-light);
}

.highlight {
    color: var(--color-primary);
}

/* UTILIDADES */
h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-secondary); /* Cambio a amarillo */
}

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

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

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-dark);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 1rem; /* Esta es la línea que debes agregar */
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-dark);
    transform: translateY(-3px);
}

/* HEADER Y NAVEGACIÓN */
.header {
    display: flex;
    justify-content: space-between; /* Alinea los elementos a los extremos */
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(5px);
}

.header-left, .header-right {
    flex: 1; /* Esto hace que los contenedores de los extremos se expandan, centrando el del medio */
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start; /* Alinea el logo a la izquierda */
}

.header-right {
    justify-content: flex-end; /* Alinea el menú a la derecha */
}

.header-left a, .header-center a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-light);
    text-decoration: none;
}

.header-left img {
    height: 80px;
    width: auto;
    display: block;
    margin-right: 10px; /* Espacio entre el logo y el texto */
}

.header-left .highlight, .header-center .highlight {
    color: var(--color-primary);
}

.header-right a {
    margin-left: 1.5rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-light);
    transition: color 0.3s;
}

.header-right a:hover {
    color: var(--color-primary);
}

/* ESTILOS DEL LOGO */
.logo a {
    display: flex; /* Alinea la imagen y el texto en la misma línea */
    align-items: center; /* Centra los elementos verticalmente */
    gap: 10px; /* Añade un espacio entre el logo y el texto */
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-light);
}

.logo img {
    height: 100px; /* Tamaño del logo */
    width: auto;
    display: block;
}

.nav a {
    margin-left: 1.5rem;
    font-weight: 500;
}

/* SECCIÓN PRINCIPAL (HERO) - ESTILOS ACTUALIZADOS */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    background-color: rgba(51, 51, 51, 0.6);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 800px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-primary);
    color: white; /* Cambia esto a blanco */
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-dark); /* Esto ya está bien para el hover */
    transform: translateY(-3px);
}

.hero-overlay h1, .hero-overlay p {
    color: var(--color-light); /* Cambio de color a blanco */
    text-shadow: 2px 2px 4px rgb(51, 51, 51);
}

@media (max-width: 768px) {
    .hero-overlay {
        padding: 1.5rem;
    }
    .hero-overlay h1 {
        font-size: 2rem;
    }
}

/* SECCIÓN DE SERVICIOS */
.services-section {
    background-color: #ffffff; /* Fondo más claro para mayor contraste */
    padding: 8rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #9b0077;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.service-card:hover .icon {
    color: var(--color-secondary);
}

/* SECCIÓN NOSOTROS */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 5%;
    gap: 4rem; /* Añade un gran espacio entre el video y el texto */
    background-color: var(--color-primary); /* Fondo magenta */
    color: var(--color-light);
}

.about-visual {
    width: 100%;
    max-width: 400px;
}

.about-visual .section-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.about-content {
    text-align: left; /* Alinea el texto a la izquierda */
    max-width: 600px;
}

.about-content h2 {
    color: var(--color-secondary); /* Título en amarillo */
    text-align: left;
    margin-bottom: 1rem;
}

.about-content .icon {
    font-size: 4rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.about-content p {
    line-height: 1.8;
}

/* ESTILOS DEL VIDEO DENTRO DE LA SECCIÓN */
.video-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.centered-video {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* SECCIÓN DE CONTACTO */
.contact-section {
    background-color: var(--color-light); /* Fondo blanco */
    color: var(--color-dark); /* Texto oscuro */
    text-align: center;
    padding: 8rem 5%;
}

.contact-section h2 {
    color: var(--color-dark); /* Título oscuro */
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    gap: 1.5rem;
    margin: 0 auto; /* Centra el formulario */
    margin-top: 2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 1rem;
    border: 2px solid var(--color-primary); /* Borde magenta */
    background-color: transparent;
    color: var(--color-dark); /* Texto del campo oscuro */
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-dark);
    opacity: 0.6;
}

.contact-form button {
    border: none;
    cursor: pointer;
}

/* SECCIÓN DE CONTACTO */
.contact-section {
    background-color: var(--color-light);
    color: var(--color-dark);
    text-align: center;
    padding: 8rem 5%;
}

.contact-section h2 {
    color: var(--color-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    gap: 1.5rem;
    margin: 0 auto;
    margin-top: 2rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 1rem;
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-dark);
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-dark);
    opacity: 0.6;
}

.contact-form button {
    border: none;
    cursor: pointer;
}

/* PIE DE PÁGINA */
.footer {
    padding: 3rem 5%;
    background-color: #1a1a1a;
    color: var(--color-light);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 80px;
    margin-bottom: 0.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente el contenido de cada columna */
    text-align: center; /* Asegura que el texto también esté centrado */
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.services-list, .contact-list {
    list-style: none;
    padding: 0;
}

.services-list li, .contact-list li {
    margin-bottom: 0.5rem;
}

.services-list a, .contact-list a {
    transition: color 0.3s;
}

.services-list a:hover, .contact-list a:hover {
    color: var(--color-primary);
}

.contact-list .fas, .contact-list .fab {
    margin-right: 0.5rem;
    color: var(--color-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto 0 auto;
}

.footer-bottom-col {
    flex: none;
    text-align: center;
}

/* Botón flotante de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    font-size: 2.5rem;
    color: white;
    background-color: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .header-left img {
        height: 30px;
    }
    .header-left a {
        font-size: 1.2rem;
    }
    .header-right a {
        margin-left: 1rem;
    }
    .header-right {
        flex: 1.5;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about-section {
        flex-direction: column;
    }
    .about-content {
        text-align: center;
    }
    .about-content h2 {
        text-align: center;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-section {
        align-items: center;
        margin-bottom: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-col {
        text-align: center;
    }
    .footer-bottom-col:last-child {
        text-align: center;
    }
}

.keywords-footer {
    background-color: #000;
    padding: 10px 5%;
    text-align: center;
    border-top: 1px solid #333;
}

.keywords-footer h6 {
    color: #fff;
    font-size: 10px;
    font-weight: normal;
    line-height: 1.4;
    margin: 0;
    opacity: 0.7;
}