/* ================================
   0) RESET + VARIABLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-marino: #0a1628;
    --azul-marino-profundo: #070A14;
    --azul-marino-oscuro: #050810;
    --azul-marino-claro: #1F2233;

    --azul-turquesa: #00d4ff;
    --azul-petroleo: #1e5f74;
    --azul-proceso: #2f6bff;
    --celeste: #4a9eff;

    --naranja: #ff9500;
    --naranja-1: #ff8a00;
    --naranja-2: #ff6a00;

    --orange-text-1: #ffb200;
    --orange-text-2: #ff6a00;

    --gris-btn: rgba(255, 255, 255, .10);
    --morado: #8b5cf6;

    --blanco: #ffffff;
    --gris-claro: #f8fafc;

    --nav-dark: rgba(18, 22, 38, .78);
    --nav-dark-scrolled: rgba(18, 22, 38, .88);

    --font-main: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: "Poppins", var(--font-main);
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

p {
    font-weight: 400;
}

/* ================================
   1) NAVBAR
   ================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1rem 0;
    transition: all .3s ease;
}

nav.scrolled {
    background: rgba(7, 10, 20, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 26px rgba(0, 0, 0, .35);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blanco);
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: transform .3s;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--blanco);
    text-decoration: none;
    transition: all .3s;
    font-weight: 500;
    position: relative;
    padding: .5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--naranja);
    transition: width .3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--naranja);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--blanco);
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Overlay para menú móvil */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================================
   2) HERO (con estrellas)
   ================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 10rem;
    color: #fff;
    background: radial-gradient(circle at center,
            var(--azul-marino-claro) 0%,
            var(--azul-marino-profundo) 55%,
            var(--azul-marino-oscuro) 100%);
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg,
            rgba(30, 95, 116, .10) 0%,
            rgba(139, 92, 246, .06) 100%);
    box-shadow: none;
    opacity: 1;
}

/* Estrellas pequeñas */
#hero::after {
    content: "";
    position: absolute;
    inset: -120px;
    pointer-events: none;
    z-index: 0;
    opacity: .9;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    top: 0;
    left: 0;
    box-shadow:
        5vw 12vh rgba(255, 255, 255, .70),
        12vw 28vh rgba(255, 255, 255, .45),
        18vw 8vh rgba(255, 255, 255, .65),
        22vw 40vh rgba(255, 255, 255, .35),
        27vw 18vh rgba(255, 255, 255, .60),
        33vw 30vh rgba(255, 255, 255, .45),
        38vw 14vh rgba(255, 255, 255, .70),
        44vw 46vh rgba(255, 255, 255, .38),
        52vw 20vh rgba(255, 255, 255, .60),
        58vw 10vh rgba(255, 255, 255, .45),
        62vw 36vh rgba(255, 255, 255, .55),
        70vw 22vh rgba(255, 255, 255, .70),
        76vw 42vh rgba(255, 255, 255, .40),
        83vw 14vh rgba(255, 255, 255, .58),
        90vw 28vh rgba(255, 255, 255, .35),
        95vw 18vh rgba(255, 255, 255, .60),
        10vw 72vh rgba(255, 255, 255, .45),
        20vw 85vh rgba(255, 255, 255, .58),
        36vw 78vh rgba(255, 255, 255, .35),
        48vw 90vh rgba(255, 255, 255, .50),
        66vw 80vh rgba(255, 255, 255, .45),
        78vw 88vh rgba(255, 255, 255, .58),
        92vw 76vh rgba(255, 255, 255, .38);
    animation: starsMoveSmall 80s linear infinite;
    filter: none;
}

/* Estrellas medianas (div .stars-md en HTML) */
#hero .stars-md {
    position: absolute;
    inset: -160px;
    pointer-events: none;
    z-index: 0;
    opacity: .65;
}

#hero .stars-md::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .70);
    box-shadow:
        15vw 18vh rgba(255, 255, 255, .45),
        25vw 52vh rgba(255, 255, 255, .38),
        40vw 24vh rgba(255, 255, 255, .50),
        55vw 44vh rgba(255, 255, 255, .40),
        72vw 16vh rgba(255, 255, 255, .45),
        86vw 38vh rgba(255, 255, 255, .38),
        30vw 82vh rgba(255, 255, 255, .45),
        60vw 74vh rgba(255, 255, 255, .38),
        85vw 86vh rgba(255, 255, 255, .40);
    animation: starsMoveMedium 80s linear infinite;
}

@keyframes starsMoveSmall {
    from {
        transform: translateX(0) translateY(0);
    }

    to {
        transform: translateX(-220px) translateY(80px);
    }
}

@keyframes starsMoveMedium {
    from {
        transform: translateX(0) translateY(0);
    }

    to {
        transform: translateX(-320px) translateY(120px);
    }
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 4.2vw, 3.5rem);
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.4rem;
}

.hero-content h1 .highlight-orange {
    font-weight: 800;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.75;
    opacity: .92;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .90);
    padding: .55rem 1.2rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    backdrop-filter: blur(10px);
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all .3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(180deg, var(--naranja-1) 0%, var(--naranja-2) 100%);
    color: var(--blanco);
    box-shadow: 0 14px 35px rgba(255, 106, 0, .35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 18px 45px rgba(255, 106, 0, .45);
}

.btn-secondary {
    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .92);
    border: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 12px 30px rgba(0, 0, 0, .25);
}

.hero-image {
    animation: float 3s ease-in-out infinite;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    transition: transform .3s;
    margin: 0 auto;
}

.hero-image:hover img {
    transform: scale(1.05) rotateY(5deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ================================
   3) SECTION HEADER (base)
   ================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--naranja-2);
    background: rgba(255, 149, 0, .12);
    border: 1px solid rgba(255, 149, 0, .22);
    padding: .55rem 1.1rem;
    border-radius: 999px;
    margin: 0 auto;
}

.section-badge::before,
.section-badge::after {
    content: none;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--azul-marino);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.highlight-orange {
    display: inline-block;
    background-image: linear-gradient(180deg, var(--orange-text-1) 0%, var(--orange-text-2) 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-header h2 .highlight {
    color: var(--celeste);
    position: relative;
}

.section-header h2 .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--celeste);
}

.section-header p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
    padding: 0 1rem;
}

/* ================================
   4) ABOUT
   ================================ */
#about {
    padding: 6rem 2rem;
    background: var(--blanco);
}

.about-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* imagen + stats */
.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    width: 100%;
}

.about-image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: transform .35s ease;
    margin: 0 auto;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Stats EN UNA SOLA CARD */
#about .about-image .stats {
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 1rem 1.2rem;
    margin-top: .2rem;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(2, 6, 23, .10);
}

#about .about-image .stats .stat-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: .6rem .4rem;
    border-radius: 0 !important;
    transition: none !important;
    overflow: visible !important;
    text-align: center;
}

#about .about-image .stats .stat-card::before {
    content: none !important;
}

#about .about-image .stats .stat-card:hover {
    transform: none !important;
}

#about .about-image .stats .stat-card:not(:last-child) {
    border-right: 1px solid #eef2f7;
}

#about .about-image .stats .stat-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--naranja);
    margin: 0 0 .15rem;
    line-height: 1.1;
}

#about .about-image .stats .stat-card p {
    font-size: clamp(0.7rem, 1.5vw, .82rem);
    font-weight: 600;
    color: #64748b;
    margin: 0;
    line-height: 1.2;
}

/* títulos about */
.about-content {
    text-align: left;
}

.about-content h3:first-of-type {
    font-size: clamp(0.75rem, 1.5vw, .85rem);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--naranja-2);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .9rem;
}

.about-content h3:nth-of-type(2) {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.05;
    color: var(--azul-marino);
    margin: 0 0 .35rem;
    max-width: 100%;
}

.about-content h4 {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    color: var(--naranja-2);
    margin: 0 0 1.2rem;
    max-width: 100%;
}

.about-content p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.8;
    color: #64748b;
    max-width: 100%;
}

/* ================================
   5) TABS (Misión/Visión/Valores)
   ================================ */
.tabs {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
    border-bottom: none;
    flex-wrap: wrap;
}

.tab {
    padding: .95rem 1.6rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    color: #475569;
    font-size: .95rem;
    box-shadow: 0 10px 25px rgba(2, 6, 23, .06);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.tab:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 106, 0, .35);
    box-shadow: 0 16px 35px rgba(2, 6, 23, .10);
    color: #0f172a;
}

.tab.active {
    background: linear-gradient(180deg, var(--naranja-1) 0%, var(--naranja-2) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(255, 106, 0, .25);
}

.tab::after {
    content: none !important;
}

.tab-content {
    display: none;
    margin-top: 1.2rem;
}

.tab-content.active {
    display: block;
}

.tab-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 1.8rem 2.3rem;
    box-shadow: 0 20px 45px rgba(2, 6, 23, .10);
}

.tab-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tab-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--naranja-1) 0%, var(--naranja-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(255, 106, 0, .25);
    flex: 0 0 auto;
    font-size: 2.3rem;
}

.tab-text h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--azul-marino-oscuro);
    margin: 0 0 .5rem;
}

.tab-text p {
    color: #64748b;
    line-height: 1.8;
    font-size: 1.02rem;
    margin: 0;
}

/* ================================
   6) SERVICES
   ================================ */
#services {
    padding: 6rem 2rem;
    background: var(--gris-claro);
}

/* badge con líneas solo en services */
#services .section-badge {
    position: relative;
    display: inline-block;
    background: transparent;
    border: 0;
    padding: 0 1.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .20em;
    text-transform: uppercase;
    color: var(--celeste);
    text-align: center;
}

#services .section-badge::before,
#services .section-badge::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 56px;
    height: 2px;
    background: var(--azul-proceso);
    transform: translateY(-50%);
    opacity: .9;
}

#services .section-badge::before {
    right: 100%;
    margin-right: 14px;
}

#services .section-badge::after {
    left: 100%;
    margin-left: 14px;
}

#services .section-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--azul-marino);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: center;
}

#services .section-header h2 .highlight {
    color: var(--azul-proceso);
    position: relative;
}

#services .section-header h2 .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: var(--azul-proceso);
    border-radius: 99px;
}

.services-grid {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.2rem;
    padding: 0 1rem;
}

.service-card {
    background: var(--blanco);
    border-radius: 22px;
    padding: 2.2rem 2rem;
    border: 1px solid #eef2f7;
    box-shadow: 0 16px 40px rgba(2, 6, 23, .08);
    transition: transform 0.3s ease;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card::before {
    content: none !important;
}

.service-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.35rem;
    transition: transform .35s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.35rem);
    margin-bottom: .75rem;
    color: var(--azul-marino);
    font-weight: 800;
    transition: color .25s ease;
    text-align: center;
}

.service-card h3:hover {
    color: var(--celeste);
}

.service-card>p {
    color: #64748b;
    margin-bottom: 1.3rem;
    line-height: 1.7;
    font-size: clamp(0.9rem, 1.5vw, .98rem);
    text-align: center;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-top: .9rem;
    padding: 0;
    width: 100%;
    text-align: left;
}

.service-features li {
    padding: .55rem 0;
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #475569;
    font-size: clamp(0.85rem, 1.5vw, .95rem);
}

.service-features li::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--celeste);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    flex: 0 0 18px;
}

/* ================================
   7) PROCESS - CORRECCIONES ESPECÍFICAS
   ================================ */
#process {
    padding: 6rem 2rem;
    background: var(--blanco);
    text-align: center;
}

#process .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* badge con líneas en process */
#process .section-badge {
    position: relative;
    display: inline-block;
    background: transparent;
    border: 0;
    padding: 0 1.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .20em;
    text-transform: uppercase;
    color: var(--azul-proceso);
    text-align: center;
}

#process .section-badge::before,
#process .section-badge::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 56px;
    height: 2px;
    background: var(--azul-proceso);
    transform: translateY(-50%);
    opacity: .9;
}

#process .section-badge::before {
    right: 100%;
    margin-right: 14px;
}

#process .section-badge::after {
    left: 100%;
    margin-left: 14px;
}

#process .section-header h2 {
    font-size: 2.8rem;
    color: var(--azul-marino);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: center;
}

#process .section-header h2 .highlight {
    color: var(--azul-proceso);
    position: relative;
    display: inline-block;
}

#process .section-header h2 .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: var(--azul-proceso);
    border-radius: 99px;
}

/* Grid centrado */
.process-grid {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
    padding: 0 1rem;
}

.process-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Líneas punteadas entre pasos - solo visible en desktop */
.process-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50px;
    /* Ajusta este valor para bajar/subir la línea */
    left: calc(50% + 150px);
    /* Cambiado de 85px a 100px para mover a la derecha */
    width: calc(100% - 250px);
    /* Ajustado para compensar el cambio en left */
    height: 3px;
    background: repeating-linear-gradient(to right,
            var(--azul-proceso) 0 10px,
            transparent 10px 20px);
    opacity: .55;
    pointer-events: none;
    transition: opacity .35s ease, filter .35s ease;
    z-index: 1;
    /* Añadido para asegurar que esté detrás de los iconos */
}

/* Efecto hover en las líneas */
.process-grid:hover .process-step:not(:last-child)::after,
.process-step:hover::after {
    opacity: 1;
    filter: blur(2.5px);
}

/* Icono circular */
.process-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--azul-proceso) 0%, var(--celeste) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 1.3rem;
    box-shadow: 0 14px 30px rgba(47, 107, 255, .22);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    z-index: 2;
}

/* Efecto hover en iconos */
.process-step:hover .process-icon {
    transform: translateY(-6px) scale(1.06);
    background: linear-gradient(135deg, var(--celeste) 0%, var(--azul-turquesa) 100%);
    box-shadow: 0 18px 40px rgba(96, 197, 244, .35);
    filter: brightness(1.03);
}

/* Número del paso */
.process-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0b1220;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    font-weight: 800;
    border: 3px solid #fff;
    box-shadow: 0 10px 20px rgba(2, 6, 23, .18);
}

/* Imagen dentro del icono */
.process-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Contenido de texto */
.process-content h4 {
    font-size: 1.25rem;
    margin-bottom: .75rem;
    color: var(--azul-marino);
    font-weight: 800;
    transition: color .25s ease;
    text-align: center;
}

.process-step:hover .process-content h4 {
    color: var(--azul-proceso);
}

.process-content p {
    font-size: .98rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 26ch;
    text-align: center;
    margin: 0 auto;
}

.process-content h4.highlight {
    color: inherit !important;
}

/* ================================
   8) CONTACT
   ================================ */
#contact {
    padding: calc(140px + 4rem) 2rem 6rem;
    background: linear-gradient(135deg, #1f4fbf 0%, var(--celeste) 70%);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact .section-badge {
    position: relative;
    display: inline-block;
    background: transparent;
    border: 0;
    padding: 0 1.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    text-align: center;
}

#contact .section-badge::before,
#contact .section-badge::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 64px;
    height: 2px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .55);
    border-radius: 999px;
}

#contact .section-badge::before {
    right: 100%;
    margin-right: 14px;
}

#contact .section-badge::after {
    left: 100%;
    margin-left: 14px;
}

#contact .contact-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    display: block;
    z-index: 1;
    pointer-events: none;
}

/* contenido arriba */
.contact-info-header,
.contact-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

.contact-info-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.contact-info-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

#contact .contact-info-header h2 .highlight {
    color: var(--orange-text-1);
    position: relative;
    display: inline-block;
}

#contact .contact-info-header h2 .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4px;
    background: var(--orange-text-1);
    border-radius: 999px;
    opacity: .95;
}

.contact-info-header p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: .95;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.contact-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2rem 1rem;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-info>p {
    margin-bottom: 2.5rem;
    opacity: .95;
    line-height: 1.7;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .10);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, .20);
    backdrop-filter: blur(10px);
    transition: all .3s;
}

.contact-method:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .40);
    transform: translateX(10px);
}

.contact-method .icon {
    min-width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .20);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    flex-shrink: 0;
}

.contact-method:hover .icon {
    background: rgba(255, 255, 255, .30);
    transform: scale(1.1);
}

.contact-method a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.contact-method a:hover {
    color: var(--naranja);
}

.contact-method .label {
    font-size: .85rem;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .25rem;
}

.contact-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .30);
    transition: transform .3s;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image:hover {
    transform: scale(1.02);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   WHATSAPP FLOAT BUTTON
   ================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    text-decoration: none;
    animation: whatsappPulse 2s infinite ease-in-out;
}

/* Icono de WhatsApp */
.whatsapp-float::before {
    content: '';
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Animación de pulso */
@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow:
            0 4px 20px rgba(37, 211, 102, 0.4),
            0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    50% {
        box-shadow:
            0 4px 25px rgba(37, 211, 102, 0.5),
            0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Hover effect */
.whatsapp-float:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* Active/Click effect */
.whatsapp-float:active {
    transform: scale(1.05) translateY(-1px);
}

/* Tooltip opcional */
.whatsapp-float::after {
    content: '¿Necesitas ayuda?';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1e1e1e;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: var(--font-main);
}

/* Mostrar tooltip en hover */
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0);
    }
}

/* ================================
   FOOTER + NEWSLETTER (LIMPIO)
   ================================ */
footer {
    background: var(--azul-marino-profundo);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 3.2rem 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* overlay de color */
footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 95, 116, .20) 0%, rgba(139, 92, 246, .20) 100%);
    pointer-events: none;
    z-index: 0;
}

/* estrellas (misma vibra que hero) */
footer::after {
    content: "";
    position: absolute;
    inset: -140px;
    pointer-events: none;
    z-index: 0;
    opacity: .55;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    top: 0;
    left: 0;
    box-shadow:
        6vw 14vh rgba(255, 255, 255, .60),
        14vw 30vh rgba(255, 255, 255, .35),
        22vw 10vh rgba(255, 255, 255, .55),
        28vw 46vh rgba(255, 255, 255, .28),
        36vw 22vh rgba(255, 255, 255, .45),
        44vw 34vh rgba(255, 255, 255, .35),
        58vw 18vh rgba(255, 255, 255, .45),
        66vw 42vh rgba(255, 255, 255, .30),
        78vw 26vh rgba(255, 255, 255, .40),
        90vw 36vh rgba(255, 255, 255, .28);
    animation: starsMoveSmall 80s linear infinite;
}

/* ================================
   FOOTER GRID
   ================================ */
.footer-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 2.2rem;
    margin-bottom: 1.6rem;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    font-weight: 700;
    color: #fff;
    text-align: left;
}

.footer-section p {
    color: rgba(255, 255, 255, .80);
    line-height: 1.6;
    margin-bottom: .55rem;
    font-size: clamp(0.85rem, 1.5vw, .92rem);
    text-align: left;
}

/* Links sin flechas ni movimiento */
.footer-section a {
    color: rgba(255, 255, 255, .80);
    text-decoration: none;
    transition: color .25s ease;
    font-size: clamp(0.85rem, 1.5vw, .92rem);
    text-align: left;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--azul-turquesa);
}

.footer-section a::before {
    content: none !important;
}

/* ================================
   CONTACT ITEMS (icono + texto alineado)
   ================================ */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    text-align: left;
}

/* fila */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ícono fijo */
.footer-contact-item .icon {
    width: 20px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item .icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .9;
}

/* texto (correo puede partirse pero queda alineado) */
.footer-contact-item .text,
.footer-contact-item .text a {
    line-height: 1.35;
    word-break: break-word;
    text-align: left;
}

/* ================================
   SOCIAL
   ================================ */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    justify-content: flex-start;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .10);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, .18);
    transition: all .3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(0, 212, 255, .18);
    border-color: rgba(0, 212, 255, .55);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, .18);
}

.footer-social img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: .95;
}

/* ================================
   FOOTER BOTTOM
   ================================ */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .10);
    padding-top: 1.2rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

.footer-bottom-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: clamp(0.8rem, 1.5vw, .88rem);
    color: rgba(255, 255, 255, .72);
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    color: rgba(255, 255, 255, .70);
    font-size: clamp(0.8rem, 1.5vw, .88rem);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* ================================
   ISLAND ANIMATIONS (SIN BLUR)
   ================================ */

/* Fade In Up (secciones) */
.fade-in-island {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.75s cubic-bezier(.2, .7, .2, 1),
        transform 1s cubic-bezier(.2, .7, .2, 1);
}

.fade-in-island.show {
    opacity: 1;
    transform: translateY(0);
}

/* Fade Down (HERO) */
.fade-down-island {
    opacity: 0;
    transform: translateY(-32px);
    transition:
        opacity 0.9s cubic-bezier(.2, .7, .2, 1),
        transform 1s cubic-bezier(.2, .7, .2, 1);
}

.fade-down-island.show {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE MEJORADO - TABLET
   ================================ */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    /* Hero - Tablet */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content p {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    /* IMAGEN ABAJO - Tablet */
    .hero-image {
        order: 2;
        max-width: 450px;
        margin: 0 auto;
    }

    .hero-content {
        order: 1;
    }

    /* About - Tablet */
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .about-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-content h3:first-of-type {
        justify-content: center;
    }

    /* Process - Tablet */
    .process-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
    }

    .process-step {
        flex: 1 1 calc(50% - 2rem);
        min-width: 250px;
    }

    .process-step:nth-child(2n)::after {
        display: none;
    }

    .process-step:nth-child(odd):not(:nth-last-child(-n+2))::after {
        display: block;
        left: calc(50% + 140px);
        width: 80px;
    }

    /* Contact - Tablet */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
        height: 300px;
    }

    /* Footer - Tablet */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    /* Tabs - Tablet */
    .tabs {
        justify-content: center;
    }

    .tab {
        flex: 0 1 auto;
        min-width: 140px;
    }
}

/* ================================
   RESPONSIVE MEJORADO - MOBILE
   ================================ */
@media (max-width: 768px) {

    /* Navbar Mobile */
    .menu-toggle {
        display: flex;
    }

    /* Menú móvil */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: radial-gradient(circle at center,
                var(--azul-marino-claro) 0%,
                var(--azul-marino-profundo) 55%,
                var(--azul-marino-oscuro) 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
        list-style: none;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Animación escalonada */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links a {
        font-family: var(--font-main);
        font-size: 1.1rem;
        font-weight: 500;
        color: var(--blanco);
        padding: 0.8rem 1.5rem;
        display: block;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-decoration: none;
        position: relative;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--naranja);
    }

    .nav-links a::after {
        display: none;
    }

    /* Botón cerrar */
    .close-menu {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: var(--blanco);
        font-size: 2.5rem;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1000;
        transition: all 0.3s ease;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

    .close-menu:hover {
        transform: rotate(90deg);
        color: var(--naranja);
        background: rgba(255, 255, 255, 0.15);
    }

    /* General spacing Mobile */
    #hero {
        padding: 6rem 1.5rem 8rem;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* IMAGEN HERO ABAJO - Mobile */
    .hero-image {
        order: 2;
        max-width: 100%;
        margin: 2rem auto;
    }

    .hero-content {
        order: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #about,
    #services,
    #process {
        padding: 4rem 1.5rem;
    }

    #contact {
        padding: calc(100px + 3rem) 1.5rem 4rem;
    }

    /* Typography Mobile */
    .section-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }

    .section-header h2 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        padding: 0 1rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Hero Mobile */
    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-align: center;
        max-width: 100%;
    }

    .badge {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* About Mobile */
    #about .about-image .stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-content h3:first-of-type {
        font-size: 0.8rem;
        text-align: center;
        justify-content: center;
    }

    .about-content h3:nth-of-type(2),
    .about-content h4 {
        font-size: 1.8rem;
        max-width: 100%;
        text-align: center;
    }

    .about-content p {
        font-size: 0.98rem;
        max-width: 100%;
        text-align: center;
    }

    /* Tabs Mobile */
    .tabs {
        flex-direction: column;
        gap: 0.8rem;
        margin: 1.5rem 0 1.2rem;
        width: 100%;
    }

    .tab {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .tab-card {
        padding: 1.5rem 1.5rem;
    }

    .tab-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .tab-icon {
        width: 48px;
        height: 48px;
        font-size: 2rem;
    }

    .tab-text h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .tab-text p {
        font-size: 0.95rem;
        text-align: center;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.8rem 1.5rem;
        margin: 0 auto;
        max-width: 400px;
    }

    .service-card h3 {
        font-size: 1.25rem;
        text-align: center;
    }

    /* Process Mobile */
    .process-grid {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .process-step {
        flex: 1 1 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .process-step::after {
        display: none !important;
    }

    .process-content p {
        max-width: 100%;
        text-align: center;
    }

    /* Contact Mobile */
    #contact .contact-wave {
        height: 100px;
    }

    .contact-info-header h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    .contact-info-header p {
        font-size: 1rem;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h3 {
        font-size: 1.6rem;
        text-align: center;
    }

    .contact-methods {
        gap: 1rem;
        align-items: center;
    }

    .contact-method {
        padding: 1.2rem;
        width: 100%;
        max-width: 400px;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .contact-method .icon {
        min-width: 45px;
        height: 45px;
        margin: 0 auto;
    }

    .contact-method .text {
        text-align: center;
    }

    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section h4 {
        text-align: center;
    }

    .footer-section p,
    .footer-section a {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-contact-item .text {
        text-align: center;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom p {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* WhatsApp button ajuste Mobile */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float::before {
        width: 28px;
        height: 28px;
    }

    /* Ocultar tooltip en móvil */
    .whatsapp-float::after {
        display: none;
    }
}

/* ================================
   RESPONSIVE MEJORADO - SMALL MOBILE
   ================================ */
@media (max-width: 480px) {

    /* General adjustments */
    .nav-container {
        padding: 0 1rem;
    }

    /* Hero Small Mobile */
    #hero {
        padding: 5rem 1rem 6rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }

    /* Sections Small Mobile */
    #about,
    #services,
    #process {
        padding: 3rem 1rem;
    }

    #contact {
        padding: calc(80px + 2.5rem) 1rem 3rem;
    }

    /* Section header Small Mobile */
    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-badge {
        font-size: 0.65rem;
        padding: 0.5rem 1rem;
    }

    /* About Small Mobile */
    #about .about-image .stats {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
    }

    #about .about-image .stats .stat-card {
        padding: 0.6rem;
    }

    #about .about-image .stats .stat-card:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid #eef2f7;
        padding-bottom: 0.8rem;
    }

    #about .about-image .stats .stat-card h3 {
        font-size: 1.6rem;
    }

    #about .about-image .stats .stat-card p {
        font-size: 0.75rem;
    }

    .about-content h3:first-of-type {
        font-size: 0.75rem;
    }

    .about-content h3:nth-of-type(2),
    .about-content h4 {
        font-size: 1.6rem;
    }

    .about-content p {
        font-size: 0.92rem;
    }

    /* Tabs Small Mobile */
    .tab {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }

    .tab-card {
        padding: 1.2rem 1rem;
    }

    .tab-icon {
        width: 42px;
        height: 42px;
        font-size: 1.8rem;
    }

    .tab-text h3 {
        font-size: 1.1rem;
    }

    .tab-text p {
        font-size: 0.9rem;
    }

    /* Services Small Mobile */
    .service-card {
        padding: 1.5rem 1.2rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .service-card>p {
        font-size: 0.92rem;
    }

    .service-card img {
        height: 160px;
    }

    .service-features li {
        font-size: 0.9rem;
    }

    /* Process Small Mobile */
    .process-icon {
        width: 80px;
        height: 80px;
    }

    .process-icon img {
        width: 36px;
        height: 36px;
    }

    .process-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border: 2px solid #fff;
    }

    .process-content h4 {
        font-size: 1.1rem;
    }

    .process-content p {
        font-size: 0.9rem;
    }

    /* Contact Small Mobile */
    #contact .contact-wave {
        height: 80px;
    }

    .contact-info-header h2 {
        font-size: 1.8rem;
    }

    .contact-info-header p {
        font-size: 0.95rem;
    }

    .contact-info h3 {
        font-size: 1.4rem;
    }

    .contact-info>p {
        font-size: 0.92rem;
    }

    .contact-method {
        padding: 1rem;
    }

    .contact-method .icon {
        min-width: 40px;
        height: 40px;
    }

    /* Footer Small Mobile */
    footer {
        padding: 2.5rem 1rem 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.88rem;
    }

    .footer-social a {
        width: 38px;
        height: 38px;
    }

    .footer-social img {
        width: 18px;
        height: 18px;
    }

    .footer-bottom p,
    .footer-links a {
        font-size: 0.8rem;
    }

    /* WhatsApp button Small Mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float::before {
        width: 26px;
        height: 26px;
    }
}

/* ================================
   RESPONSIVE MEJORADO - EXTRA SMALL MOBILE
   ================================ */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .about-content h3:nth-of-type(2),
    .about-content h4 {
        font-size: 1.4rem;
    }

    .contact-info-header h2 {
        font-size: 1.6rem;
    }

    .service-card {
        padding: 1.2rem 1rem;
    }

    .process-icon {
        width: 70px;
        height: 70px;
    }

    .process-icon img {
        width: 30px;
        height: 30px;
    }

    .cta-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ================================
   RESPONSIVE MEJORADO - LANDSCAPE ORIENTATION
   ================================ */
@media (max-height: 600px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding: 4rem 2rem 5rem;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-image {
        order: 1;
        max-width: 350px;
    }

    .hero-content {
        text-align: left;
        align-items: flex-start;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: flex-start;
        max-width: 100%;
    }

    .btn {
        width: auto;
    }

    .nav-links {
        padding: 1rem;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ================================
   RESPONSIVE MEJORADO - TABLET LANDSCAPE
   ================================ */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    #hero {
        padding: 5rem 2rem 6rem;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-image {
        order: 1;
    }

    .hero-content {
        text-align: left;
        align-items: flex-start;
    }

    .cta-buttons {
        justify-content: flex-start;
    }

    .process-step {
        flex: 1 1 calc(33.333% - 2rem);
    }

    .process-step:nth-child(3n)::after {
        display: none;
    }

    .process-step:nth-child(1)::after,
    .process-step:nth-child(2)::after {
        display: block;
    }
}

/* ================================
   RESPONSIVE MEJORADO - WIDE SCREENS
   ================================ */
@media (min-width: 1400px) {

    .hero-container,
    .about-container,
    .services-grid,
    .process-grid,
    .contact-container,
    .footer-container {
        max-width: 1400px;
    }

    .hero-content h1 {
        font-size: 3.8rem;
    }

    .section-header h2 {
        font-size: 3.2rem;
    }

    .process-step:not(:last-child)::after {
        width: 120px;
        left: calc(50% + 80px);
    }
}

/* ================================
   PERFORMANCE OPTIMIZATIONS FOR MOBILE
   ================================ */
@media (max-width: 768px) {

    .hero-image,
    .service-card img,
    .about-image img,
    .contact-image {
        animation: none;
    }

    .process-icon {
        transition: none;
    }

    #hero::after,
    #hero .stars-md::before,
    footer::after {
        animation: none;
    }

    .whatsapp-float:hover::after {
        display: none;
    }

    /* Optimize transitions for mobile */
    * {
        transition-duration: 0.2s !important;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {

    .whatsapp-float,
    .menu-toggle,
    .nav-links,
    .menu-overlay {
        display: none !important;
    }

    #hero {
        min-height: auto;
        padding: 2rem;
    }

    .hero-image {
        display: none;
    }

    .section-header h2 {
        color: #000;
    }

    .btn {
        display: none;
    }
}