/* General and Reset Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colores del logo proporcionados por el usuario */
    --vibrant-blue: #0bd4fd;
    --golden-brown: #c9a764;
    
    /* Colores derivados para la paleta con más marrón */
    --dark-text: #3a3a3a; /* Un gris oscuro para la legibilidad */
    --light-text: #666666;
    --background-light: #f8f8f8;
    --soft-white: #ffffff;
    --card-bg: #ffffff;
    --dark-brown-gradient: #a38552; /* Tono más oscuro de marrón para gradientes */
    --shadow-color: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    padding: 0;
    background: var(--background-light);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative; 
    /* z-index: 1; */ /* Eliminado */
}

/* Background Video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2; 
}

/* Main Header and Logo */
.main-header {
    position: fixed; /* Fijo en la pantalla */
    top: 0;
    left: 0;
    width: auto; /* Ancho ajustado al contenido */
    padding: 1rem 1.5rem; /* Padding más compacto */
    text-align: left; /* Alinea el logo a la izquierda */
    background: rgba(255, 255, 255, 0.85); /* Blanco semitransparente */
    backdrop-filter: blur(5px); /* Efecto de cristal esmerilado */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    z-index: 1000; /* Asegura que esté por encima de todo */
    border-bottom-right-radius: 15px; /* Esquina redondeada */
    display: flex; /* Para centrar verticalmente el logo si es necesario */
    align-items: center;
}

.main-logo {
    width: clamp(80px, 12vw, 150px); /* Ajusta el tamaño del logo para que sea más pequeño */
    height: auto;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 1200px;
    background: var(--soft-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    padding: 3rem;
    /* margin-top: 100vh; */ /* Eliminado */
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border: none;
    position: relative; 
    z-index: 1; 
}

/* Header Section (Hero) */
.app-header {
    position: relative; /* Cambiado a relative */
    top: 0; 
    left: 0;
    width: 100%;
    height: 100vh; 
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    z-index: 2; /* Asegura que esté por encima del video */
}

.app-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
    color: var(--soft-white);
    padding: 2rem;
    max-width: 800px;
}

.animated-text {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
}

/* Sections and Content */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--golden-brown);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--vibrant-blue);
    margin: 15px auto 0;
    border-radius: 3px;
}

p, li {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--light-text);
    text-align: justify;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(45deg, var(--golden-brown), var(--dark-brown-gradient));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(189, 153, 99, 0.3);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--dark-brown-gradient), var(--golden-brown));
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 12px 25px rgba(189, 153, 99, 0.4);
}

/* Product Cards */
.products-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card h4 {
    font-size: 1.8rem;
    color: var(--golden-brown);
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 1rem;
    line-height: 1.7;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(11, 212, 253, 0.05) 0%, transparent 70%);
    transform: rotate(0deg);
    transition: transform 1.5s ease-out;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.product-card:hover::before {
    transform: rotate(360deg);
}

/* Why Choose Us List */
.why-us-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-us-list li {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 6px solid var(--vibrant-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.why-us-list li:hover {
    transform: translateX(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.why-us-list li strong {
    color: var(--golden-brown);
}

/* Contact Form */
.contact-form-ajax {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Revertido a original */
}

.contact-form-ajax input,
.contact-form-ajax textarea {
    padding: 1rem; /* Revertido a original */
    font-size: 1.1rem;
    background: var(--card-bg); /* Revertido a original */
    border: 2px solid rgba(0, 0, 0, 0.1); /* Revertido a original */
    border-radius: 10px; /* Revertido a original */
    color: var(--dark-text);
    transition: border-color 0.3s ease;
}

.contact-form-ajax input:focus,
.contact-form-ajax textarea:focus {
    border-color: var(--golden-brown); /* Revertido a original */
    outline: none;
    box-shadow: none; /* Eliminado */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999; /* Revertido a original */
}

.contact-us p a {
    color: var(--vibrant-blue); /* Revertido a original */
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.contact-us p a:hover {
    color: var(--dark-text); /* Revertido a original */
}

/* Copyright Notice */
.copyright {
    margin-top: 3rem;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
    letter-spacing: 0.5px;
    background: var(--soft-white);
    box-shadow: 0 -2px 10px var(--shadow-color);
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoom-in-out {
    0% { transform: scale(1.0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.0); }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .app-container {
        padding: 1.5rem;
        margin-top: 100vh; /* Ajustado para que siempre esté debajo del hero */
        margin: 1rem auto; /* Margen a los lados y centrado */
        width: calc(100% - 2rem); /* Ancho ajustado al margen */
        background: rgba(255, 255, 255, 0.85); /* Transparencia */
        backdrop-filter: blur(5px); /* Efecto de cristal esmerilado */
    }

    .app-header {
        height: 100vh; /* Eliminado el 60vh */
    }
    
    .header-content {
        padding: 1rem;
    }

    .animated-text {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .product-card,
    .why-us-list li {
        padding: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 1rem;
        margin: 0.5rem auto; /* Margen a los lados y centrado */
        width: calc(100% - 1rem); /* Ancho ajustado al margen */
        background: rgba(255, 255, 255, 0.85); /* Transparencia */
        backdrop-filter: blur(5px); /* Efecto de cristal esmerilado */
    }

    .main-header {
        padding: 1rem;
    }

    .animated-text {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    p, li {
        font-size: 0.95rem;
    }
}