/* ==========================================================================
   ESTILOS PERSONALIZADOS CORPORATIVOS
   ========================================================================== */

:root {
    --primary-blue: #2153A7;
    --secondary-blue: #3B82F6;
    --light-blue: #E6F2FF;
    --dark-gray: #2D3748;
    --medium-gray: #4A5568;
    --light-gray: #F7FAFC;
    --border-gray: #E2E8F0;
    --white: #FFFFFF;
    --success-green: #10B981;
    --accent-orange: #F59E0B;
}

/* Tipografía base */
* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

body {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Navegación */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
}
.navbar-nav .nav-link.active { font-weight: 600; }

/* Botones corporativos */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary-custom:hover {
    background: linear-gradient(145deg, var(--secondary-blue), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 83, 167, 0.9);
}

.btn-outline-custom {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-custom:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image:   linear-gradient(135deg, rgba(230,242,255,0.3), rgba(255,255,255,0.1)),  url('../img/principal.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* iOS lo ignora; OK en desktop */
    padding: 100px 0;
}
.hero-section2 {
     position: relative;
     min-height: 100vh;
     display: flex;
     align-items: center;
     overflow: hidden;
     background-image:   linear-gradient(135deg, rgba(230,242,255,0.3), rgba(255,255,255,0.1)),  url('../img/secundaria.jpg');
     background-position: center;
     background-size: cover;
     background-repeat: no-repeat;
     background-attachment: fixed; /* iOS lo ignora; OK en desktop */
     padding: 100px 0;
 }
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(33, 83, 167, 0.08), transparent);
    transform: rotate(15deg);
    z-index: 1;
}
.hero-section2::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(33, 83, 167, 0.08), transparent);
    transform: rotate(15deg);
    z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-section .hero-title,
.hero-section .hero-subtitle { color: #fff; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.3rem;
  /*   color: var(--medium-gray); */
    color: black;
    font-weight: 400;
    margin-bottom: 2rem;

    /* Trazo fino, solo en navegadores compatibles */
    -webkit-text-stroke: 0.8px black;

    /* Sombra como fallback para navegadores sin soporte */
    text-shadow:
            1px 1px 2px rgba(0,0,0,0.6),
            -1px -1px 2px rgba(0,0,0,0.6);
}

/* Secciones */
.section-padding { padding: 100px 0; }

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--medium-gray);
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 600px;
}

/* Cards corporativas */
.company-card {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
    height: 100%;
}
.company-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.company-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-gray);
    margin-bottom: 2rem;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.service-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Galería de Instagram */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.instagram-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.instagram-item:hover { transform: scale(1.05); }
.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.instagram-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.instagram-item:hover .instagram-overlay { opacity: 1; }

/* Proyectos */
.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.project-card-body { padding: 1.5rem; }

/* Formulario de contacto */
.contact-form {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.form-control {
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(33, 83, 167, 0.25);
}

/* Mapa */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 2rem;
}
.footer h5 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-links a {
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--white); }

/* Botón WhatsApp flotante (única definición) */
.whatsapp-float {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    color: var(--white);
    text-decoration: none;
}
@keyframes pulse {
    0%   { transform: scale(1);   box-shadow: 0 0 0 rgba(37,211,102,0.7); }
    70%  { transform: scale(1.1); box-shadow: 0 0 20px rgba(37,211,102,0.5); }
    100% { transform: scale(1);   box-shadow: 0 0 0 rgba(37,211,102,0); }
}

/* Responsivo */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2.2rem; }
    .section-padding { padding: 60px 0; }
    .company-card { padding: 2rem 1.5rem; }
    .contact-form { padding: 2rem; }
}

/* Animaciones utilitarias */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


