/* ======== VARIABLES Y ESTILOS GLOBALES ======== */
:root {
    --primary-color: #00A9E0; /* Un azul cian vibrante */
    --dark-bg: #121212;
    --light-bg: #1E1E1E;
    --text-color: #E0E0E0;
    --text-color-dark: #B3B3B3;
    --font-family: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* ======== HEADER Y NAVEGACIÓN ======== */
.main-header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.header-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.header-contact a:hover {
    background-color: var(--primary-color);
    color: #FFF;
}

.logo img {
    height: 60px; /* Ajusta este valor si lo quieres más grande o más pequeño */
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* ======== HERO CON VIDEO ======== */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: #FFF;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #008fbf;
    transform: translateY(-3px);
}

/* ======== ESTILOS DE SECCIONES DE CONTENIDO ======== */
.content-section, .content-section-dark {
    padding: 5rem 10%;
    text-align: center;
}

.content-section-dark {
    background-color: var(--light-bg);
}

.content-section h2, .content-section-dark h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* ======== GRID DE PRODUCTOS Y BENEFICIOS ======== */
.products-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.product-card, .benefit-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.benefit-item {
    border: none;
    background-color: #2a2a2a;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card h3, .benefit-item h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card-image {
    max-width: 100%;
    height: 220px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    display: block;
}

/* ======== SECCIÓN DE CONTACTO MEJORADA ========= */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.contact-map iframe {
    border-radius: 8px;
    height: 100%;
    min-height: 500px;
    width: 100% !important;
}

.contact-info-form {
    display: flex;
    flex-direction: column;
}

.contact-info-form h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.contact-details {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.contact-label {
    flex-shrink: 0;
    width: 120px;
    font-weight: 700;
    color: var(--text-color);
}

.contact-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-content a:hover {
    text-decoration: underline;
}

/* Formulario de contacto (Versión Corregida y Final) */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    width: 100%;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ======== FOOTER ======== */
.main-footer {
    background-color: #000;
    text-align: center;
    padding: 2rem;
    color: var(--text-color-dark);
}

/* ======== ESTILOS BOTÓN FLOTANTE WHATSAPP ======== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: auto;
}

/* ======== RESPONSIVE DESIGN PARA MÓVILES ======== */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .content-section, .content-section-dark {
        padding: 4rem 5%;
    }
}