/* ==========================================
   VARIABLES DE COLOR CORPORATIVO (J.A. Santos)
   ========================================== */
:root {
    --color-naranja: #e34d25;
    --color-azul: #1a4a9b;
    --color-oscuro: #242424; /* <-- Gris grafito elegante (antes #111111) */
    --color-blanco: #ffffff;
}

/* ==========================================
   ESTILOS GENERALES (MODO OSCURO)
   ========================================== */
html {
    scroll-behavior: smooth; /* Deslizamiento suave al hacer clic en el menú */
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #e0e0e0; /* Texto claro para que se lea en fondo oscuro */
    background-color: var(--color-oscuro); /* Fondo general negro */
    padding-top: 76px;
}

/* Forzar que los textos grises de Bootstrap destaquen más en fondo negro */
.text-muted {
    color: #aaaaaa !important; 
}

/* ==========================================
   BOTONES CON TRANSPARENCIAS (GHOST BUTTONS)
   ========================================== */
.btn-transparente-naranja {
    background-color: rgba(227, 77, 37, 0.15); /* Naranja al 15% de opacidad */
    border: 2px solid var(--color-naranja);
    color: var(--color-blanco);
    backdrop-filter: blur(5px); /* Efecto cristal */
    transition: all 0.3s ease;
}

.btn-transparente-naranja:hover {
    background-color: var(--color-naranja);
    color: var(--color-blanco);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(227, 77, 37, 0.3) !important;
}

.btn-transparente-azul {
    background-color: rgba(26, 74, 155, 0.15); /* Azul al 15% de opacidad */
    border: 2px solid var(--color-azul);
    color: var(--color-blanco);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.btn-transparente-azul:hover {
    background-color: var(--color-azul);
    color: var(--color-blanco);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 74, 155, 0.3) !important;
}

/* Animación general para otros botones */
.boton-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.boton-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4) !important;
}

/* ==========================================
   MENÚ Y CABECERA (HERO)
   ========================================== */
/* Efecto hover (pasar el ratón) en los enlaces del menú */
.nav-link:hover {
    color: var(--color-naranja) !important;
    transition: color 0.3s ease;
}

/* El gran bloque de la cabecera */
.hero-section {
    background: linear-gradient(rgba(36, 36, 36, 0.5), rgba(36, 36, 36, 0.5)), url('../img/hero.jpg') center/cover no-repeat;
    min-height: 80vh; 
    margin-top: -76px; /* Sube la imagen por debajo del menú transparente */
    padding-top: 76px;
}

.text-shadow {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* ==========================================
   TARJETAS (SERVICIOS Y OPINIONES)
   ========================================== */
.servicio-card, .opinion-card {
    background-color: #333333 !important; /* <-- Gris más clarito para que resalten */
    color: var(--color-blanco) !important;
    border: 1px solid #444444 !important; /* Borde un poco más claro */
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
}

/* Asegurarnos de que el texto dentro de las tarjetas sea claro */
.servicio-card .card-text, .opinion-card p {
    color: #cccccc !important;
}

/* Efectos al pasar el ratón */
.servicio-card:hover, .opinion-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.5) !important; 
}

/* Animación de los iconos de servicios */
.icono-servicio i {
    transition: transform 0.3s ease;
}
.servicio-card:hover .icono-servicio i {
    transform: scale(1.1);
}

/* Borde superior azul para las reseñas */
.opinion-card {
    border-top: 4px solid var(--color-azul) !important; 
}

/* ==========================================
   GALERÍA DE TRABAJOS
   ========================================== */
.proyecto-card {
    aspect-ratio: 4/3; 
    background-color: var(--color-oscuro);
    cursor: pointer;
}

.proyecto-card img {
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.proyecto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0) 60%);
    opacity: 0; 
    transition: opacity 0.4s ease;
}

.proyecto-card:hover img {
    transform: scale(1.08); 
    opacity: 0.5; 
}

.proyecto-card:hover .proyecto-overlay {
    opacity: 1; 
}

/* ==========================================
   FOOTER (PIE DE PÁGINA)
   ========================================== */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-naranja) !important;
}

.footer-social {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social:hover {
    background-color: var(--color-naranja);
    border-color: var(--color-naranja);
    color: var(--color-blanco);
    transform: translateY(-3px);
}

/* ==========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--color-blanco);
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: var(--color-blanco);
    transform: scale(1.1);
}