/* ==========================================
   VARIABLES Y ESTILOS GENERALES (VERDE GSI)
   ========================================== */
:root {
    --color-primary: #008744;
    --color-primary-dark: #005c2e;
    --color-secondary: #00a854;
    --color-text: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* FONDO CON CAPA OSCURECIDA (PUNTO 1: CONTRASTE MEJORADO SIN BLUR) */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: #0b0f19 !important;
    /* Opacidad ajustada al 50% para que la imagen se vea nítida y el texto resalte */
    background-image: linear-gradient(rgba(11, 15, 25, 0.5), rgba(11, 15, 25, 0.5)), url('fondo.jpg') !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    color: var(--color-text);
    line-height: 1.6;
}

/* FONDO PANORÁMICO PARA PC / APAISADO */
@media (min-width: 769px) or (orientation: landscape) {
    body {
        background-image: linear-gradient(rgba(11, 15, 25, 0.5), rgba(11, 15, 25, 0.5)), url('fondo-horizontal.jpg') !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}

/* ==========================================
   RESALTE ESPECIAL PARA PALABRA INFORMALES
   ========================================== */
.highlight-informal {
    color: #ffca28 !important; /* Amarillo cálido/dorado de alta visibilidad */
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    background: rgba(255, 202, 40, 0.15); /* Fondo suave estilo resaltador */
    border-radius: 4px;
    border: 1px solid rgba(255, 202, 40, 0.4);
    text-shadow: 0 0 8px rgba(255, 202, 40, 0.6) !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent !important;
}

/* ==========================================
   ENCABEZADO (HEADER)
   ========================================== */
.header {
    background-color: rgba(11, 15, 25, 0.9) !important;
    border-bottom: 1px solid rgba(0, 135, 68, 0.4);
    box-shadow: 0 2px 10px rgba(0,0,0,0.7);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9); /* PUNTO 3: SOMBRA DE TEXTO */
}

.logo span {
    color: #ffffff;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9); /* PUNTO 3: SOMBRA DE TEXTO */
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

/* ==========================================
   SECCIÓN HERO
   ========================================== */
.hero {
    background: linear-gradient(135deg, rgba(0, 135, 68, 0.6) 0%, rgba(0, 40, 20, 0.7) 100%) !important;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 135, 68, 0.5);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9); /* PUNTO 3: SOMBRA DE TEXTO */
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9); /* PUNTO 3: SOMBRA DE TEXTO */
}

.btn-hero {
    display: inline-block;
    background-color: var(--color-secondary);
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-hero:hover {
    background-color: #007a3d;
    transform: translateY(-2px);
}

/* ==========================================
   SECCIÓN DE SERVICIOS Y TARJETAS
   ========================================== */
.services {
    padding: 70px 0;
    background-color: transparent !important;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9); /* PUNTO 3: SOMBRA DE TEXTO */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ==========================================
   MARCOS ESTILO VIDRIO TEMPLADO / ACRÍLICO GROSERO
   ========================================== */
.card {
    /* Fondo transparente de cristal azulado */
    background: rgba(12, 22, 36, 0.28) !important;
    padding: 32px 25px;
    border-radius: 18px; /* Curvatura similar al marco de la tablet */
    text-align: center;
    color: #ffffff;
    
    /* Marco grueso que simula el borde externo del vidrio */
    border: 5px solid rgba(180, 230, 255, 0.5) !important;
    
    /* Contorno interno que genera el grosor del bisel transparente */
    outline: 1px solid rgba(255, 255, 255, 0.25);
    outline-offset: -7px;
    
    /* Efecto multi-capa: Bisel brillante superior + sombra profunda + brillo HUD */
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.6),      /* Reflejo de luz en el borde superior */
        inset 0 -2px 6px rgba(0, 0, 0, 0.5),           /* Sombra de profundidad inferior */
        inset 0 0 20px rgba(100, 210, 255, 0.15),      /* Glow de cristal interno */
        0 10px 30px rgba(0, 0, 0, 0.6),                /* Sombra flotante sobre el fondo */
        0 0 15px rgba(0, 180, 255, 0.25);              /* Resplandor perimetral */
        
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* EFECTO AL PASAR EL CURSOR (HOVER DE CRISTAL ILUMINADO) */
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 245, 255, 0.8) !important;
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.8),
        inset 0 0 25px rgba(130, 220, 255, 0.3),
        0 14px 40px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(0, 210, 255, 0.45);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 15px;
    color: #00c862;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9); /* PUNTO 3: SOMBRA DE TEXTO */
}

.card p {
    text-shadow: 0 1px 3px rgba(0,0,0,0.9); /* PUNTO 3: SOMBRA DE TEXTO */
}

/* ==========================================
   FORMULARIO DE CONTACTO
   ========================================== */
.contact {
    padding: 70px 0;
    background-color: rgba(8, 12, 20, 0.7) !important;
}

.contact-sub {
    text-align: center;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9); /* PUNTO 3: SOMBRA DE TEXTO */
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9); /* PUNTO 3: SOMBRA DE TEXTO */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 135, 68, 0.6);
    border-radius: 4px;
    font-family: inherit;
    background-color: rgba(18, 26, 38, 0.9);
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(0, 168, 84, 0.6);
}

/* ==========================================
   PIE DE PÁGINA
   ========================================== */
.footer {
    background-color: rgba(5, 7, 12, 0.95) !important;
    color: #aaaaaa;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 135, 68, 0.3);
}

/* ==========================================
   OPTIMIZACIÓN RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .nav-links {
        margin-top: 15px;
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.95rem;
    }

    .hero {
        padding: 50px 20px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services, .contact {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 0 10px;
    }
}

/* ==========================================
   BOTÓN FLOTANTE INTERRUPTOR DE AUDIO (HUD GLASS)
   ========================================== */
#btn-audio-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    
    /* Estilo de cristal HUD para hacer juego con las tarjetas */
    background: rgba(12, 22, 36, 0.65);
    color: #ffffff;
    border: 2px solid rgba(180, 230, 255, 0.5);
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    
    /* Sombra y resplandor estilo acrílico */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(100, 210, 255, 0.2);
    
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#btn-audio-toggle:hover {
    transform: scale(1.05);
    border-color: rgba(220, 245, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

/* Estado activo (ON) */
#btn-audio-toggle.audio-on {
    border-color: rgba(0, 200, 100, 0.7);
    box-shadow: 0 0 15px rgba(0, 200, 100, 0.4);
    background: rgba(8, 35, 20, 0.75);
}

.audio-status {
    font-size: 0.85rem;
    letter-spacing: 1px;
}
