/* ==========================================================================
   VARIABLES CORPORATIVAS DE SN DESARROLLOS
   ========================================================================== */
:root {
    --primary-color: #0052cc;
    --primary-hover: #003fa3;
    --dark-blue: #0a192f;
    --light-blue: #a2c7c3;
    --bg-light: #f4f6f9;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #555555;
    --shadow-elegant: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 82, 204, 0.1);
}

/* ==========================================================================
   ESTILOS BASE Y TIPOGRAFÍA
   ========================================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================================================
   HERO PRINCIPAL (Elegante, fondo sutil y gran tipografía)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%) !important;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid #e1e8ed;
}
.hero h1 {
    font-size: 3.5rem;
    color: var(--dark-blue) !important;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}
.hero p {
    font-size: 1.3rem;
    color: var(--text-muted) !important;
    max-width: 800px;
    margin: 0 auto 35px auto;
}
.btn-primary {
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}
.btn-primary:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
}

/* ==========================================================================
   DISEÑO PREMIUM DE TARJETAS (Servicios y Sectores)
   ========================================================================== */
.grid-services, .grid-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.service-card, .sector-card {
    background: var(--white);
    border: 1px solid #eef2f5;
    border-radius: 16px;
    padding: 35px 30px;
    width: 320px;
    box-shadow: var(--shadow-elegant);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Efecto de línea decorativa superior en tarjetas */
.service-card::before, .sector-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover, .sector-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 82, 204, 0.1);
}

.service-card:hover::before, .sector-card:hover::before {
    transform: scaleX(1);
}

.service-card h3, .sector-card h3 {
    color: var(--dark-blue);
    font-size: 1.4rem;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p, .sector-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Botón secundario estilizado */
.btn-secondary {
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   SECCIÓN CONTACTO Y FORMULARIO
   ========================================================================== */
.contact-section {
    background-color: var(--bg-light);
    padding: 80px 20px;
}
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}
.col-left h2 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    font-weight: 700;
}
.contact-info {
    margin-top: 35px;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.info-icon-wrapper {
    width: 45px;
    height: 45px;
    background: rgba(0, 82, 204, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.info-text-wrapper h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark-blue);
}
.info-text-wrapper p {
    margin: 2px 0 0 0;
    color: var(--text-muted);
}

/* Inputs del Formulario Premium */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.9rem;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}
.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.2);
}
.btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 82, 204, 0.3);
}

/* ==========================================================================
   DISEÑO ORIGINAL DE WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-container {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.whatsapp-tooltip {
    background: var(--dark-blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-left: 3px solid #25d366;
}
.whatsapp-btn {
    background-color: #25d366;
    color: white;
    padding: 14px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}
.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   DISEÑO ADAPTABLE EXCLUSIVO PARA MÓVILES (Celulares)
   ========================================================================== */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.2rem !important;
    }
    .hero p {
        font-size: 1.05rem !important;
    }
    .service-card, .sector-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .contact-grid {
        gap: 30px;
    }
    .whatsapp-tooltip {
        display: none !important; /* Limpieza en pantallas móviles */
    }
}

/* ==========================================================================
   BLINDAJE FINAL PARA LAS VENTANAS EMERGENTES (MODALES)
   ========================================================================== */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 25, 47, 0.75) !important; /* Fondo oscuro semitransparente de alta gama */
    display: none !important; /* Obliga a mantenerse oculto desde el inicio */
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000000 !important; /* Lo pone por encima de todo el contenido */
}

.modal-content {
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 12px !important;
    max-width: 500px !important;
    width: 90% !important;
    position: relative !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.modal-content h2 {
    color: #0a192f !important;
    margin-top: 0 !important;
    font-size: 1.8rem !important;
    font-weight: bold !important;
}

.modal-content p {
    color: #333333 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

