:root {
    --logo-bg: #40463D;       /* Verde olivo oscuro del fondo */
    --logo-metal: #D4C9B4;    /* Beige metálico de la placa y letras */
    --logo-fire: #FF7000;     /* Naranja de la flama */
    --logo-ice: #0066FF;      /* Azul de la flama */
    
    /* Asignación a tu página */
    --primary: var(--logo-bg);
    --bg-light: #353a32;      /* Un tono un poco más oscuro para variar secciones */
    --text-main: var(--logo-metal);
    --text-muted: #a39b8a;
    --accent: var(--logo-fire);
    --accent-hover: #e66500;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

/* Navbar (Glassmorphism Oscuro) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(53, 58, 50, 0.85); /* Tono oscuro basado en tu logo */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 201, 180, 0.1);
    z-index: 1000;
    padding: 16px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ajustes para el logo en imagen */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 95px; 
    width: auto;
    object-fit: contain; 
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.03); 
}

.btn-outline {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

/* Overlay adaptado a los colores de Devidrio */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(64, 70, 61, 0.95), rgba(64, 70, 61, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--logo-ice); /* Azul del logo */
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-main);
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(255, 112, 0, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 112, 0, 0.5);
}

/* Services Section (Premium) */
.services {
    padding: 100px 0;
    background-color: var(--primary);
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background-color: rgba(212, 201, 180, 0.1); 
    color: var(--text-main);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 201, 180, 0.2);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    position: relative;
}

.service-card {
    position: relative;
    border-radius: 16px;
    cursor: pointer;
    z-index: 1;
}

/* Efecto de resplandor (Glow) detrás de las tarjetas */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
    filter: blur(20px);
}

.service-card:hover .card-glow {
    opacity: 0.4;
    transform: scale(1.05);
}

.orange-glow { background: linear-gradient(45deg, var(--logo-fire), transparent); }
.blue-glow { background: linear-gradient(45deg, var(--logo-ice), transparent); }
.metal-glow { background: linear-gradient(45deg, var(--logo-metal), transparent); }

/* Contenido de la tarjeta */
.card-content {
    background: var(--bg-light); 
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover .card-content {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03); 
}

/* Íconos SVG */
.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
    color: var(--logo-metal); 
}

.service-card:hover .icon-wrapper {
    background: var(--primary);
    transform: scale(1.1);
}

.card-content h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
}

.card-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Enlace "Cotizar" interactivo */
.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-link svg {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-link {
    color: var(--accent); 
}

.service-card:hover .card-link svg {
    transform: translateX(5px); 
}

/* Formulario Estilos Premium */
.form-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto 100px;
    background: var(--bg-light);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    color: var(--logo-metal);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs de texto, email y textarea */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 201, 180, 0.15);
    color: var(--white);
    padding: 14px 16px 14px 48px;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

textarea.form-control {
    padding-top: 16px;
    resize: vertical;
    min-height: 120px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 112, 0, 0.1);
}

.form-control:focus + .input-icon,
.input-with-icon:focus-within .input-icon {
    color: var(--accent);
}

/* Selects Personalizados */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    pointer-events: none;
}

select.form-control {
    padding-left: 16px; /* Quita el espacio del icono */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select.form-control option {
    background-color: var(--primary);
    color: var(--white);
}

/* Checkboxes Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
    user-select: none;
    transition: color 0.2s ease;
}

.custom-checkbox:hover {
    color: var(--white);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 201, 180, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--logo-ice);
    border-color: var(--logo-ice);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Subida de Archivos (File Upload) */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(212, 201, 180, 0.3);
    padding: 16px;
    border-radius: 12px;
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.file-label svg {
    width: 18px;
    height: 18px;
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.file-name {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer del form (reCAPTCHA y botón) */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-recaptcha {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid rgba(212, 201, 180, 0.15);
}

/* Responsivo para el Formulario */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 32px 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    
    .btn-primary {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    .file-upload-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Footer */
footer {
    background-color: #2a2e28;
    padding: 32px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.developer-tag {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn:hover {
    background-color: #20b858;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}