:root {
    --bg-dark: #050a12;
    --card-bg: rgba(15, 25, 40, 0.7);
    --op-blue: #0077b5; /* Azul de tu logo */
    --accent-glow: #00d4ff;
    --text-main: #e6f1ff;
    --text-dim: #a8b2d1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* PatrÃ³n de fondo tipo plano tÃ©cnico */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 119, 181, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
    z-index: -1;
}

/* Navbar Actualizada */
.navbar {
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    padding: 10px 8%;
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar img {
    height: 45px;
    width: auto;
}

/* MENSAJE INTEGRADO - CORREGIDO PARA VISIBILIDAD */
.mensaje-integrado {
    margin-left: 25px;
    background: #f0f7ff; /* Fondo sutil para dar contraste */
    color: #005a8a;      /* Azul sÃ³lido, no transparente */
    padding: 6px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50px;
    border: 1px solid var(--op-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 1.5s ease;
    animation: fadeInInNavbar 0.5s ease-out forwards;
}

.mensaje-integrado i {
    color: #28a745;
}

/* CLASE PARA EL DESVANECIMIENTO */
.fade-out-now {
    opacity: 0 !important;
    pointer-events: none;
}

@keyframes fadeInInNavbar {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-left: auto;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--op-blue);
}

/* Hero Section */
.hero {
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 0;
    background: linear-gradient(to bottom, rgba(5, 10, 18, 0.5), var(--bg-dark)), 
                url('../img/background.png'); 
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--op-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
}

/* Servicios */
.services-section {
    padding: 60px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: var(--op-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(0, 119, 181, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-glow);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}

.main-icon {
    font-size: 2.8rem;
    background: linear-gradient(45deg, var(--op-blue), var(--accent-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.sub-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

.sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-main);
}

.sub-item i {
    color: var(--op-blue);
    font-size: 0.9rem;
}

/* Secci¨®n Contacto */
.contact-section {
    padding: 80px 8%;
    background: var(--bg-dark);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 119, 181, 0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    appearance: none;
}

.contact-form option {
    background-color: #0a192f;
    color: white;
}

.contact-form input:focus, 
.contact-form select:focus, 
.contact-form textarea:focus {
    border-color: var(--op-blue);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 119, 181, 0.3);
}

.btn-enviar {
    width: 100%;
    background: linear-gradient(90deg, var(--op-blue), var(--accent-glow));
    color: white;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Footer */
.main-footer {
    background: white;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Responsivo */
@media (max-width: 850px) {
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    .mensaje-integrado {
        margin: 10px 0;
        border-left: none;
        border-bottom: 2px solid var(--op-blue);
    }
    .nav-links {
        margin-left: 0;
        gap: 15px;
        padding-top: 10px;
    }
}