:root {
    --bg-white: #ffffff;
    --primary-blue: #0056b3;       /* Azul rey elegante basado en el logo */
    --primary-blue-hover: #003f8a;  /* Azul oscuro para estados hover */
    --accent-cyan: #0099ff;         /* Celeste brillante de las ondas y burbujas */
    --accent-green: #7ccb33;        /* Verde ecológico vibrante de la hoja del logo */
    --primary-black: #0d1b2a;       /* Azul muy oscuro/negro para textos principales */
    --accent-blue-light: #f0f7ff;   /* Fondo sutil azulado muy claro */
    --gray-light: #f4f8fc;          /* Gris suave azulado para secciones alternas */
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVEGACIÓN --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 86, 179, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-black);
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-cyan);
}

.nav-cta {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 22px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}

.nav-cta:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary-black);
}

/* --- EFECTO DE ESPUMA --- */
.foam-container {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.bubble {
    position: absolute;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95) 0%, rgba(0, 153, 255, 0.4) 50%, rgba(0, 86, 179, 0.3) 100%);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: inset -4px -4px 8px rgba(0, 60, 140, 0.3), 0 4px 12px rgba(0, 153, 255, 0.25);
    animation: riseBubble 3.5s ease-in-out infinite;
}

@keyframes riseBubble {
    0% { transform: translateY(30px) scale(0.4); opacity: 0; }
    30% { opacity: 0.9; }
    100% { transform: translateY(-120px) scale(1.3); opacity: 0; }
}

/* --- 1. SECCIÓN INICIO --- */
#inicio {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    padding: 0 5%;
}

.video-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-black);
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.banner-content h1 span {
    color: var(--primary-blue);
}

.banner-content p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    color: #000000;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--bg-white);
    padding: 15px 38px;
    border-radius: 35px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.6);
}

/* --- CONTENEDORES GENERALES --- */
section {
    padding: 110px 5%;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 12px;
    color: var(--primary-black);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    color: #4a5568;
    margin-bottom: 60px;
    font-size: 1.15rem;
}

/* --- 2. SECCIÓN SOBRE NOSOTROS --- */
#nosotros {
    background-color: var(--gray-light);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.feature-card {
    background: var(--bg-white);
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.06);
    border-top: 5px solid var(--accent-cyan);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.14);
    border-top-color: var(--accent-green);
}

.feature-card i {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-black);
    font-weight: 700;
}

.feature-card p {
    color: #555;
}

/* --- 3. SECCIÓN INFORMACIÓN Y COTIZADOR --- */
#informacion {
    background-color: var(--bg-white);
}

.info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-text p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 20px;
}

.info-text ul {
    list-style: none;
    margin-top: 25px;
}

.info-text ul li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.05rem;
}

.info-text ul li i {
    color: var(--accent-green);
    font-size: 1.2rem;
}

.cotizador-box {
    background: linear-gradient(135deg, var(--accent-blue-light) 0%, #ffffff 100%);
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.12);
    border: 2px solid rgba(0, 153, 255, 0.25);
    position: relative;
    z-index: 3;
}

.cotizador-box h3 {
    margin-bottom: 25px;
    font-size: 1.7rem;
    color: var(--primary-black);
    font-weight: 700;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}

.form-group select, .form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    background: var(--bg-white);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.15);
}

.resultado-precio {
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    background: var(--bg-white);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed var(--accent-cyan);
}

/* --- 4. SECCIÓN PORTAFOLIO --- */
#portfolio {
    background-color: var(--gray-light);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-white);
    border: 2px solid #cbd5e1;
    color: var(--primary-black);
    padding: 8px 22px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    color: var(--bg-white);
    border-color: var(--primary-blue);
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.35);
}

.portafolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.08);
    background: var(--primary-black);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.92) 0%, rgba(13, 27, 42, 0.35) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tag {
    display: inline-block;
    background: var(--accent-cyan);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-info h4 {
    font-size: 1.25rem;
    color: var(--bg-white);
    margin-bottom: 5px;
    font-weight: 700;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin: 0;
}

.zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.zoom-icon:hover {
    background: var(--accent-cyan);
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 27, 42, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: zoomModal 0.3s ease;
    object-fit: contain;
}

@keyframes zoomModal {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-cyan);
}

/* --- PREGUNTAS FRECUENTES (FAQ) --- */
#faq {
    background-color: var(--gray-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
}

.faq-question {
    padding: 20px 25px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--accent-blue-light);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-blue);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    color: #555;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 25px 20px 25px;
}

/* --- 5. SECCIÓN CONTACTO --- */
#contacto {
    background-color: var(--gray-light);
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-info-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.06);
}

.contacto-info-box h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-black);
    font-weight: 700;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.info-item i {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    margin-top: 3px;
}

.info-item h4 {
    font-size: 1rem;
    color: var(--primary-black);
    font-weight: 700;
    margin-bottom: 3px;
}

.info-item p {
    color: #666;
    font-size: 0.95rem;
}

.map-container {
    margin-top: 30px;
    width: 100%;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contacto-form-container {
    background: var(--bg-white);
    padding: 45px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.08);
}

.contacto-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-black);
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contacto-form-container textarea {
    height: 120px;
    resize: vertical;
}

/* --- BOTÓN FLOTANTE WHATSAPP CON BURBUJAS --- */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 65px;
    height: 65px;
    pointer-events: none;
}

.whatsapp-float {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    pointer-events: auto;
    transition: transform 0.3s ease;
    text-decoration: none;
    z-index: 2;
}

.whatsapp-float:hover {
    transform: scale(1.12);
}

.whatsapp-bubble {
    position: absolute;
    bottom: 45px;
    right: 25px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95) 0%, rgba(100, 162, 255, 0.4) 50%, rgba(37, 147, 211, 0.25) 100%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: inset -3px -3px 6px rgba(20, 98, 150, 0.3), 0 4px 10px rgba(37, 156, 211, 0.3);
    animation: riseWhatsappBubble 2.5s ease-out infinite;
    z-index: 1;
}

@keyframes riseWhatsappBubble {
    0% { transform: translate(0, 0) scale(0.3); opacity: 0; }
    30% { opacity: 0.9; }
    100% { transform: translate(calc(var(--rand-x) * 15px), -90px) scale(1.2); opacity: 0; }
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-black);
    color: var(--bg-white);
    text-align: center;
    padding: 35px;
    font-size: 0.95rem;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .contacto-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .banner-content h1 {
        font-size: 2.3rem;
    }

    .info-layout {
        grid-template-columns: 1fr;
    }

    .contacto-form-container, .contacto-info-box {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}