/* =========================================================
   ISP Solutions – Estilos principales
   Paleta: Full Dark – Negro tech + Cian eléctrico (#00e5ff)
   ========================================================= */

/* Variables */
:root {
    --primary:        #0d0d0d;
    --accent:         #00e5ff;
    --accent-hover:   #00bcd4;
    --secondary:      rgba(255, 255, 255, 0.58);

    /* Fondos oscuros (alternos para crear ritmo visual) */
    --bg-1:  #0b0f18;   /* sección principal */
    --bg-2:  #0d1520;   /* sección alternada */
    --bg-card: #131d2e; /* tarjetas y formularios */

    /* Bordes sutiles */
    --border-dim:   rgba(0, 229, 255, 0.07);
    --border-hover: rgba(0, 229, 255, 0.22);

    /* Sombras */
    --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md:     0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg:     0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 24px rgba(0, 229, 255, 0.28);

    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* ─── Base ─────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    background-color: var(--bg-1);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}
a:hover { color: var(--accent-hover); }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}
.section-title p {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ─── Botones ───────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 229, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background-color: var(--accent);
    color: #000;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ─── Header ────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 15, 24, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-dim);
    transition: var(--transition);
}
.header.scrolled {
    background-color: rgba(11, 15, 24, 0.98);
    border-bottom-color: rgba(0, 229, 255, 0.14);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo { display: flex; align-items: center; }
.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav { display: flex; align-items: center; }

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 2rem;
}
.nav-links li { margin-left: 1.5rem; }

.nav-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* Botón cerrar (solo móvil) */
.close-menu-item { display: none !important; }

.nav-cta { margin-left: 1.5rem; }

.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    padding: 0.25rem;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #080c14 0%, #0d1b2a 55%, #06111e 100%);
}
.hero::before {
    content: '';
    position: absolute;
    top: -15%; left: -5%;
    width: 65%; height: 85%;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 229, 255, 0.07) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
    animation: fadeInUp 1s ease-out;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}
.hero-bg { display: none; }
.network-animation {
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* ─── About ─────────────────────────────────────────────── */
.about { background-color: var(--bg-1); }

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}
.about-text { flex: 1; min-width: 300px; }
.about-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.about-text p {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

/* ─── Partners ──────────────────────────────────────────── */
.partners-section {
    background-color: var(--bg-2);
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-dim);
    border-bottom: 1px solid var(--border-dim);
}
.partners-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 2.5rem;
}
.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.brand-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    width: 140px;
}
.brand-logo-item:hover { transform: translateY(-5px); }
.brand-logo-container {
    width: 110px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.8);
    opacity: 0.45;
    transition: all 0.3s ease;
}
.brand-logo-item:hover .brand-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}
.brand-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

/* ─── Services ──────────────────────────────────────────── */
.services { background-color: var(--bg-1); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-dim);
    border-left: 3px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    border-left-color: var(--accent);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 229, 255, 0.06);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    background: rgba(0, 229, 255, 0.06);
    color: var(--accent);
    font-size: 2rem;
    border-bottom: 1px solid var(--border-dim);
}

.service-content { padding: 1.5rem; }
.service-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}
.service-content p {
    font-size: 0.96rem;
    color: var(--secondary);
    margin-bottom: 1.25rem;
    line-height: 1.65;
}
.service-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent);
    letter-spacing: 0.02em;
}
.service-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}
.service-link:hover { color: var(--accent-hover); }
.service-link:hover i { transform: translateX(5px); }

/* ─── Why Choose Us ─────────────────────────────────────── */
.why-choose { background-color: var(--bg-2); }

.features-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}
.features-image { flex: 1; min-width: 300px; }
.features-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-dim);
}
.features-list { flex: 1; min-width: 300px; }

.feature-item {
    display: flex;
    margin-bottom: 1.75rem;
}
.feature-icon {
    flex-shrink: 0;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-right: 1.25rem;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 229, 255, 0.14);
}
.feature-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #ffffff;
}
.feature-text p {
    font-size: 0.96rem;
    color: var(--secondary);
    line-height: 1.65;
}

/* ─── Clients ───────────────────────────────────────────── */
.clients-section {
    padding: 3.5rem 0;
    background-color: var(--bg-1);
    border-top: 1px solid var(--border-dim);
}
.clients-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 2.5rem;
}
.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 0 auto;
}
.client-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    opacity: 0.4;
    filter: grayscale(100%) brightness(2);
    transition: var(--transition);
}
.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

/* ─── Contact ───────────────────────────────────────────── */
.contact { background-color: var(--bg-2); }

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info { flex: 1; min-width: 300px; }
.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}
.contact-info > p {
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}
.contact-details { margin-bottom: 2rem; }
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.contact-item i {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 0.88rem;
}
.contact-item p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--secondary);
}
.social-links { display: flex; gap: 1rem; }
.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}
.social-link:hover {
    background-color: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Tarjeta del formulario */
.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-dim);
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.28); }
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}
/* Opciones del select en dark */
.form-control option {
    background-color: #131d2e;
    color: rgba(255, 255, 255, 0.88);
}
.form-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.32);
    margin-top: 0.5rem;
    text-align: center;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    background-color: #070b12;
    color: rgba(255, 255, 255, 0.42);
    padding: 4rem 0 0;
    border-top: 1px solid var(--border-dim);
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col { flex: 1; min-width: 200px; }
.footer-col h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.25rem;
}
.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.footer-col .logo-footer img {
    height: 38px;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-links li i {
    margin-right: 0.5rem;
    color: var(--accent);
    opacity: 0.75;
    font-size: 0.82rem;
}
.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.83rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.42); }
.footer-bottom a:hover { color: var(--accent); }

/* ─── Reveal on Scroll ──────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Media Queries ─────────────────────────────────────── */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .section  { padding: 4rem 0; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p  { font-size: 1.1rem; }

    /* Panel de navegación móvil */
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 72%;
        height: 100vh;
        background-color: #0a0f1a;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 2rem 3rem;
        box-shadow: -6px 0 40px rgba(0, 0, 0, 0.7);
        border-left: 1px solid rgba(0, 229, 255, 0.1);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        margin-right: 0;
    }
    .nav-links.active { right: 0; }

    /* Botón cerrar dentro del panel */
    .close-menu-item {
        display: flex !important;
        justify-content: flex-end;
        width: 100%;
        margin-left: 0;
        margin-bottom: 1.5rem;
    }
    .close-menu {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.7);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.25rem;
        display: flex;
        align-items: center;
    }
    .close-menu:hover { color: var(--accent); }

    .nav-links li { margin: 0.75rem 0; width: 100%; }
    .nav-links a {
        display: block;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, 0.82);
        padding: 0.5rem 0;
    }
    .nav-links a:hover { color: var(--accent); }

    .menu-toggle { display: block; }
    .nav-cta     { display: none; }

    .brand-logos { gap: 1.5rem; }
    .brand-logo-item { width: 115px; }
    .brand-logo-container { width: 95px; height: 68px; }

    .clients-logos { gap: 2rem; }
    .client-logo { height: 40px; max-width: 120px; }
}

@media (max-width: 576px) {
    .hero h1          { font-size: 2rem; }
    .section-title h2 { font-size: 2rem; }
    .hero-cta         { flex-direction: column; }
    .hero-cta .btn    { width: 100%; }

    .partners-title,
    .clients-title    { font-size: 1.3rem; }

    .brand-logos      { gap: 1rem; }
    .brand-logo-item  { width: 90px; }
    .brand-logo-container { width: 75px; height: 55px; }
    .brand-name       { font-size: 0.76rem; }

    .clients-logos    { gap: 1.5rem; }
    .client-logo      { height: 32px; max-width: 95px; }
}
