/* =========================================================================
   ARCHIVO: estilos.css
   UBICACIÓN: css/estilos.css
   DESCRIPCIÓN: Estilos personalizados completos - Solución definitiva de legibilidad y mapa.
   ========================================================================= */

:root {
    --bg-dark: #1A1A1A;       /* Fondo ultra oscuro */
    --bg-surface: #262626;    /* Fondo de tarjetas y elementos */
    --text-main: #FFFFFF;     /* Texto principal */
    --text-muted: #A3A3A3;    /* Texto secundario */
    --text-light: #E5E5E5;    /* Texto claro de alta legibilidad */
    --accent: #FF9F1C;        /* Naranja/Amarillo Industrial */
    --accent-hover: #E08600;  /* Naranja hover */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Color de acento para usar en textos */
.text-accent {
    color: var(--accent);
}

/* Navbar Moderna Transparente */
.navbar-custom {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1050;
}

.navbar-custom .navbar-brand img {
    height: 45px;
    width: auto;
}

.navbar-custom .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--accent);
}

/* Hero Section Imponente */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(75deg, rgba(26, 26, 26, 0.95) 30%, rgba(26, 26, 26, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Botones Modernos */
.btn-accent {
    background-color: var(--accent);
    color: #1A1A1A;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 4px;
    border: 2px solid var(--accent);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #1A1A1A;
    transform: translateY(-2px);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Contenedor Bloque Principal */
.main-content-block {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

/* Tarjetas de Servicios Genuinas con Forzado de Color */
.service-card {
    background-color: #262626 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
    padding: 35px 30px !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 5 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.service-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 20px 40px rgba(255, 159, 28, 0.15) !important;
}

.card-text-block {
    position: relative !important;
    z-index: 10 !important;
}

.service-icon {
    font-size: 2.3rem !important;
    color: var(--accent) !important;
    margin-bottom: 20px !important;
}

.service-card h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 20px !important;
    color: var(--text-main) !important;
}

.service-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.service-list li {
    color: var(--text-light) !important;
    margin-bottom: 12px !important;
    font-size: 0.95rem !important;
    position: relative !important;
    padding-left: 20px !important;
}

.service-list li::before {
    content: "•" !important;
    color: var(--accent) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

.service-card-bg-wrapper {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 55% !important;
    z-index: 1 !important;
}

.service-card-bg-wrapper::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(0deg, rgba(38, 38, 38, 0.1) 0%, rgba(38, 38, 38, 1) 90%),
                linear-gradient(90deg, rgba(38, 38, 38, 1) 0%, rgba(38, 38, 38, 0.1) 100%) !important;
    z-index: 2 !important;
}

.service-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.15 !important;
    transition: opacity 0.4s ease, transform 0.4s ease !important;
}

.service-card:hover .service-card-img {
    opacity: 0.35 !important;
    transform: scale(1.05) !important;
}

/* Panel de Infraestructura Horizontal */
.infra-panel-horizontal {
    background: linear-gradient(135deg, rgba(38, 38, 38, 0.98) 0%, rgba(26, 26, 26, 1) 100%) !important;
    border-top: 3px solid var(--accent) !important;
    padding: 35px 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

.infra-horizontal-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--text-main) !important;
    line-height: 1.3;
}

.infra-num-col {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 25px;
}

.infra-value {
    font-size: 2.6rem !important;
    font-weight: 900 !important;
    color: var(--text-main) !important;
    line-height: 1 !important;
}

.infra-label {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-top: 6px !important;
}

/* FOOTER CORPORATIVO */
.footer-industrial {
    background-color: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 70px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-contact-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-contact-list li {
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact-list i {
    color: var(--accent);
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
}

/* Texto descriptivo de redes sociales */
.footer-text-clear {
    color: var(--text-light) !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Redes Sociales */
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-btn:hover {
    background-color: var(--accent);
    color: #1A1A1A;
    transform: translateY(-3px);
}

/* Contenedor del Mapa */
.footer-map-container {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-map-container:hover iframe {
    opacity: 1;
}

/* Barra de Copyright */
.footer-bottom {
    background-color: #0D0D0D;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 25px 0;
    margin-top: 60px;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: #737373;
}

/* Ajustes Responsivos */
@media (max-width: 991px) {
    .main-content-block {
        margin-top: 40px;
        padding-bottom: 40px;
    }
    .infra-num-col {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 0;
        padding-top: 20px;
        margin-top: 15px;
    }
    .footer-map-container {
        margin-top: 25px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}