/* =========================================================
   VARIABLES – OPENSoft
   ========================================================= */
:root {
    --bg-dark: #0E1114;
    --bg-soft: #14181C;
    --accent-green: #1ec7b683;      /* verde principal */
    --accent-green-soft: rgba(214, 250, 246, 0.253);
    --primary: #0aaab5;
    --primary-dark: #0aaab5;

    --text-main: #FFFFFF;
    --text-muted: rgba(255,255,255,0.75);

    --border-soft: rgba(255,255,255,0.08);
}

/* =========================================================
   BASE
   ========================================================= */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    letter-spacing: 0.2px;
    overflow-x: hidden;
}

.text-primary {
    color: var(--primary) !important;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.glass-nav {
    background: rgba(14,17,20,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-soft);
}

.navbar small {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */
.section {
    padding: 100px 0;
}

.section-alt {
    background: #111;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    max-width: 720px;
    margin: 15px auto 0;
    font-size: 1.1rem;
    opacity: 0.75;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 100vh;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
}

.hero-subtitle {
    margin: 16px 0;
    font-size: 1.15rem;
    opacity: 0.85;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* GRID TÉCNICO */
.grid-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.089) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.089) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* BARRIDO HORIZONTAL */
.scan-line {
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(10,166,181,0.18),
        transparent
    );
    animation: scanMove 14s linear infinite;
}

@keyframes scanMove {
    from { left: -30%; }
    to   { left: 130%; }
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn-gradient {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border: none;
    color: #fff;
}

.btn-gradient:hover {
    filter: brightness(1.1);
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.services-section {
    position: relative;
}

.service-card {
    position: relative;
    height: 100%;
    padding: 36px;
    border-radius: 14px;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.01)
    );

    border: 1px solid var(--accent-green-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-card span.border {
    box-shadow: 0 0 8px rgba(30, 199, 182, 0.205);
    position: absolute;
    background: var(--accent-green);
}

/* ARRIBA */
.service-card span.border.top {
    top: 0;
    left: 0;
    height: 1px;
    width: 0;
}

/* DERECHA */
.service-card span.border.right {
    top: 0;
    right: 0;
    width: 1px;
    height: 0;
}

/* ABAJO */
.service-card span.border.bottom {
    bottom: 0;
    right: 0;
    height: 1px;
    width: 0;
}

/* IZQUIERDA */
.service-card span.border.left {
    bottom: 0;
    left: 0;
    width: 1px;
    height: 0;
}

.service-card:hover span.border.top {
    animation: drawTop 0.3s linear forwards;
}

.service-card:hover span.border.right {
    animation: drawRight 0.3s linear forwards;
    animation-delay: 0.3s;
}

.service-card:hover span.border.bottom {
    animation: drawBottom 0.3s linear forwards;
    animation-delay: 0.6s;
}

.service-card:hover span.border.left {
    animation: drawLeft 0.3s linear forwards;
    animation-delay: 0.9s;
}
@keyframes drawTop {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes drawRight {
    from { height: 0; }
    to   { height: 100%; }
}

@keyframes drawBottom {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes drawLeft {
    from { height: 0; }
    to   { height: 100%; }
}

.service-card.featured {
    transform: translateY(-12px);
    background: linear-gradient(
        180deg,
        rgba(10,170,181,0.20),
        rgba(10,170,181,0.05)
    );
    box-shadow:
        0 0 0 1px rgba(10,170,181,0.25),
        0 30px 70px rgba(0,0,0,0.6);
}
@media (max-width: 768px) {
    .service-card.featured {
        transform: none;
    }
}


.service-tag {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
    color: #0aaab5;
}


.service-card h5 {
    font-size: 1.45rem;
    letter-spacing: 0.02em;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0.85;
}


/* =========================================================
   PROYECTOS
   ========================================================= */
.project-card {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 40px;
}


/* =========================================================
   MÉTODO
   ========================================================= */
.metodo-section {
    position: relative;
}

.metodo-step {
    height: 100%;
    padding: 34px;
    border-radius: 16px;
    background: var(--bg-soft);
    border-top: 3px solid var(--primary);
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
}
.metodo-step {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.015)
        );
    backdrop-filter: blur(2px);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.04);
}

.metodo-step {
    border: 1px solid var(--border-soft);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.metodo-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    border-color: var(--primary);
}
.step-number {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}

.metodo-step h5 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.metodo-step p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}
.step-number {
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    opacity: 0.6;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

.metodo-step:hover .step-number {
    opacity: 1;
    text-shadow: 0 0 12px rgba(10,170,181,0.45);
}

/* =========================================================
   CTA
   ========================================================= */
.cta-wide {
    padding: 160px 0;
    background: linear-gradient(
        180deg,
        rgba(10,166,181,0.14),
        transparent 70%
    );
}

.cta-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.cta-subtitle {
    max-width: 700px;
    margin: 24px auto 0;
    font-size: 1.08rem;
    opacity: 0.85;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto-section {
    background: radial-gradient(
        ellipse at center,
        rgba(10,166,181,0.10),
        transparent 70%
    );
}

.contacto-box {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 70px 50px;
    background: var(--bg-soft);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
}

.contacto-title {
    font-size: 2.6rem;
    font-weight: 700;
}

.contacto-subtitle {
    max-width: 620px;
    margin: 22px auto 0;
    font-size: 1.05rem;
    opacity: 0.85;
}

.contacto-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 0.95rem;
    color: #fff;
}
.contacto-input {
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.2s ease;
}

.contacto-input:focus {
    transform: translateY(-1px);
}

.contacto-input::placeholder {
    color: rgba(255,255,255,0.55);
}

.contacto-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(10,166,181,0.25);
    outline: none;
    color: #fff;
}

.contacto-note {
    font-size: 0.85rem;
    opacity: 0.6;
}

.contacto-mail {
    color: var(--primary);
    text-decoration: none;
}

.contacto-mail:hover {
    text-decoration: underline;
}

/* =========================================================
   CONTACTO COLAPSABLE
   ========================================================= */
.contacto-hidden {
    display: none;
}

.contacto-visible {
    display: block;
    animation: contactoFadeUp 0.45s ease forwards;
}

@keyframes contactoFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contacto-close {
    position: absolute;
    top: 18px;
    right: 18px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);

    font-size: 1.6rem;
    line-height: 1;
    color: rgba(255,255,255,0.65);

    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}
.contacto-close:hover {
    background: rgba(22, 176, 184, 0.205);
    border-color: #ffffff67;
    color: #fff;
}


/* =========================================================
   TOASTS
   ========================================================= */
.toast.text-bg-success {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.toast.text-bg-danger {
    background: linear-gradient(90deg, #dc3545, #fd7e14);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .contacto-box {
        padding: 60px 28px;
    }
}

.services-section {
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(10,170,181,0.06),
            transparent
        );
    pointer-events: none;
}
.hero {
    padding-bottom: 60px;
}
/* ===============================
   LOGOS STRIP
   =============================== */

.logos-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    height: 90px;
    overflow: hidden;

    background: linear-gradient(
        180deg,
        transparent,
        rgba(0,0,0,0.55)
    );

    border-top: 1px solid rgba(255,255,255,0.06);
    z-index: 3;
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 80px;

    width: max-content;
    padding-left: 0;

    animation: logosScroll 28s linear infinite;
}


.logos-track img {
    height: 50px;
    opacity: 0.8;
    filter: grayscale(90%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.logos-track img:hover {
    opacity: 0.9;
    filter: grayscale(0%) drop-shadow(0 0 6px rgba(30,199,182,0.45));
}


@keyframes logosScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
