/* Base Styles and Design System */
:root {
    --primary-color: #8B0000;
    /* Dark Red */
    --accent-color: #c41e3a;
    /* Bright Red */
    --dark-color: #1a1a1a;
    --light-color: #f4f4f4;
    --text-color: #333;
    --white: #ffffff;
    --whatsapp-color: #25D366;
    --overlay-color: rgba(0, 0, 0, 0.6);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

img {
    max-width: 100%;
}

/* Header */
.header {
    background-color: #000000;
    padding: 0;
    box-shadow: none;
    display: none;
    /* Entirely hidden on desktop */
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 100% !important;
    width: 100%;
    padding: 0;
}

.header-cta {
    display: none;
    /* Hidden on desktop */
    padding: 15px 0;
    width: 100%;
    text-align: center;
}

.btn-call-header {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
    padding: 8px 30px;
    border-radius: 50px;
}

.btn-call-header:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Levitación Leve Animation */
@keyframes levitate {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.floating-anim {
    animation: levitate 3s ease-in-out infinite;
    display: inline-block;
}

.header .logo img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--dark-color);
    /* Fallback */
}

.video-background iframe,
#player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}

.video-background.video-error {
    background-image: url('../img/header-graphic.png');
    background-size: cover;
    background-position: center;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.status-badge {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-white {
    background-color: var(--white);
    color: var(--text-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
}

.btn-dark {
    background-color: var(--dark-color);
    color: var(--white);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Form */
.hero-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 8px;
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-form h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 100px;
}

.form-footer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

/* Info Section */
.info-section {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.info-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.info-section .description {
    max-width: 800px;
    margin: 0 auto 50px;
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.feature-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.feature-card.red {
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-card.white {
    background-color: var(--white);
    color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
}

.info-section .sub-title {
    font-size: 1.5rem;
}

.info-section .sub-title span {
    color: var(--accent-color);
}

/* Products Section */
.products {
    padding: 60px 0;
    background-color: #fff;
    margin-top: -30px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: stretch;
}

.product-card {
    display: flex;
    height: 100%;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Custom Solutions */
.custom-solutions {
    padding: 80px 0;
    background-color: var(--white);
}

.solutions-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.solutions-content .label {
    background-color: var(--primary-color);
    color: var(--white);
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.solutions-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.solutions-content p {
    margin-bottom: 20px;
    color: #555;
}

.solutions-content h3 {
    margin-top: 30px;
    font-size: 1.8rem;
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    /* No underline */
}

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

/* Responsive */
@media (max-width: 992px) {
    .header {
        display: block;
        /* Show header on mobile */
    }

    .header-cta {
        display: block;
        /* Show CTA on mobile */
    }

    .hero {
        height: auto;
        padding: 120px 0;
    }

    .video-background iframe {
        top: 0;
        transform: translate(-50%, 0);
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .solutions-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}