/* 1. VARIABLES Y GENERALES */
:root {
    --azul: #004a99;
    --celeste: #00c3ff;
    --oscuro: #1a1a1a;
    --gris: #f4f4f4;
    --whatsapp: #25d366;
}

* { box-sizing: border-box; }

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    color: var(--oscuro);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 2. NAVEGACIÓN */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 5%; 
    background: white; 
    position: sticky; 
    top: 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    z-index: 1000; 
}

.logo img { height: 80px; width: auto; }

.nav-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--oscuro); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--azul); }

/* BARRA DE CONFIANZA (Debajo del nav) */
.trust-bar {
    background: var(--oscuro);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--celeste);
}

/* 3. HERO SECCIÓN */
.hero { 
    height: 80vh; 
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('img/trabajo7.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white;
}

.hero-text h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    margin: 0;
}

.hero-text p {
    font-size: 1.4rem;
    margin: 20px 0 30px;
}

.btn-cotizar {
    background: var(--celeste);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 195, 255, 0.4);
}

.btn-cotizar:hover {
    background: var(--azul);
    transform: scale(1.05);
}

html { scroll-behavior: smooth; }

/* 4. CONTENEDORES Y BENEFICIOS */
.container { padding: 60px 5%; text-align: center; max-width: 1200px; margin: auto; }
.section-title { font-size: 2.2rem; color: var(--azul); margin-bottom: 40px; font-weight: 800; }

.features { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.feature-card { 
    flex: 1; 
    min-width: 280px; 
    padding: 35px; 
    background: var(--gris); 
    border-radius: 12px; 
    transition: 0.3s;
    border: 1px solid #ddd;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--celeste); }
.feature-card i { font-size: 3rem; color: var(--azul); margin-bottom: 20px; }

/* 5. GALERÍA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 74, 153, 0.9);
    color: white;
    width: 100%;
    padding: 12px;
    font-weight: bold;
}

/* 6. FORMULARIO DE CONTACTO */
.contact-section { padding: 80px 5%; background: var(--azul); color: white; text-align: center; }
.contact-header h2 { font-size: 2.5rem; margin-bottom: 10px; }

#contactForm { max-width: 950px; margin: 30px auto; display: flex; flex-direction: column; gap: 12px; }

#contactForm input, 
#contactForm select, 
#contactForm textarea { 
    padding: 14px; 
    border-radius: 6px; 
    border: 1px solid #ccc; 
    font-size: 1rem;
    width: 100%;
}

.form-group-row { display: flex; gap: 10px; }

/* SECCIÓN DE MEDIDAS */
.form-group-medidas { 
    background: rgba(255,255,255,0.1); 
    padding: 25px; 
    border-radius: 12px; 
    margin-top: 15px;
    text-align: left;
    border: 1px dashed rgba(255,255,255,0.3);
}

.main-label { display: block; margin-bottom: 15px; font-weight: bold; font-size: 1.1rem; }

.medida-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.medida-row .col { display: flex; flex-direction: column; flex: 1; min-width: 110px; }

.medida-row label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Resaltar Ancho y Alto para guiar al usuario */
.ancho-v, .alto-v {
    border: 2px solid var(--celeste) !important;
    background: #f0faff !important;
    font-weight: bold;
}

.col-cant { flex: 0 0 70px !important; min-width: 70px !important; }

.btn-secundario {
    background: var(--oscuro);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin: 10px 0;
}

/* BOTÓN WHATSAPP CON ANIMACIÓN DE PULSO */
.btn-submit { 
    background: var(--whatsapp); 
    color: white; 
    border: none; 
    padding: 20px; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 6px; 
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 7. FOOTER */
footer { padding: 40px 5%; background: #111; color: white; text-align: center; }

/* 8. RESPONSIVE */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .navbar { flex-direction: column; gap: 15px; }
    .form-group-row { flex-direction: column; }

    .medida-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .col-cant { grid-column: span 2; }
    .col-medidas-grupo { grid-column: span 2; }
}

@media (min-width: 1024px) {
    .hero { background-attachment: fixed; }
}