/* ===========================
   VARIABLES & RESET
=========================== */
:root {
    --azul: #48afe3;
    --azul-dark: #2980b9;
    --azul-glow: rgba(72, 175, 227, 0.3);
    --negro: #0d0d0d;
    --blanco: #f7f9fb;
    --gris: #1a1a2e;
    --gris-claro: #ecf0f1;
    --texto: #2c3e50;
    --texto-claro: #6b7c8d;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius: 16px;
    --shadow: 0 20px 60px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--blanco);
    color: var(--texto);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: none;
}

img { display: block; }

/* ===========================
   CUSTOM CURSOR
=========================== */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--azul);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 2px solid var(--azul);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease;
    opacity: 0.6;
}

.cursor.cursor-hover {
    width: 18px;
    height: 18px;
    background: var(--azul-dark);
}

.cursor-follower.cursor-hover {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* ===========================
   CONTAINER
=========================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===========================
   HEADER
=========================== */
header {
    background: rgba(247, 249, 251, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(72, 175, 227, 0.15);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(72,175,227,0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--texto);
}

.logo-accent {
    color: var(--azul);
}

nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

nav a {
    text-decoration: none;
    padding: 8px 18px;
    color: var(--texto-claro);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--azul);
    background: rgba(72, 175, 227, 0.1);
}

/* ===========================
   HERO
=========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f7f9fb 0%, #e8f4fc 100%);
    padding: 100px 0 60px;
}

/* Background floating shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: drift 10s ease-in-out infinite alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(72, 175, 227, 0.4);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(41, 128, 185, 0.3);
    bottom: 100px;
    left: -50px;
    animation-delay: -3s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: rgba(72, 175, 227, 0.25);
    top: 40%;
    left: 40%;
    animation-delay: -5s;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(30px, 20px) scale(1.05); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(72, 175, 227, 0.12);
    color: var(--azul);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(72, 175, 227, 0.25);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: 2px;
    color: var(--texto);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.accent-line {
    color: var(--azul);
    -webkit-text-stroke: 2px var(--azul);
    color: transparent;
}

.line-reveal {
    display: block;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--texto-claro);
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.6;
    animation: slideUp 0.8s 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: slideUp 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: slideUp 0.8s 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--azul);
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--texto-claro);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(72,175,227,0.3);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

.hero-img-frame {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 300px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(72,175,227,0.25));
}

.frame-deco {
    position: absolute;
    border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
}

.frame-deco-1 {
    width: 360px;
    height: 360px;
    border: 2px solid rgba(72, 175, 227, 0.2);
    animation-delay: 0s;
}

.frame-deco-2 {
    width: 420px;
    height: 420px;
    border: 1px solid rgba(72, 175, 227, 0.1);
    animation-delay: -2s;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.04); opacity: 1; }
}

.floating-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: white;
    border: 2px solid rgba(72,175,227,0.2);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--texto);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    animation: float 4s ease-in-out infinite;
    animation-delay: -2s;
    z-index: 10;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--texto-claro);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--azul), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(1.3); opacity: 0.4; }
}

/* ===========================
   BUTTONS
=========================== */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--azul);
    color: white;
    box-shadow: 0 8px 30px rgba(72, 175, 227, 0.4);
}

.btn-primary:hover {
    background: var(--azul-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(72, 175, 227, 0.5);
}

.btn-ghost {
    border: 2px solid rgba(72, 175, 227, 0.4);
    color: var(--azul);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(72,175,227,0.1);
    border-color: var(--azul);
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: var(--texto);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--azul);
    margin-bottom: 12px;
}

.section-tag.light {
    color: rgba(72, 175, 227, 0.8);
}

.titulo {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 2px;
    color: var(--texto);
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-desc {
    color: var(--texto-claro);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ===========================
   SERVICIOS
=========================== */
.servicios {
    padding: 100px 0;
    background: var(--blanco);
}

.cards {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    width: 340px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.25s; }
.card:nth-child(3) { transition-delay: 0.4s; }

.card:hover {
    transform: translateY(-14px);
    box-shadow: 0 30px 60px rgba(72, 175, 227, 0.15);
    border-color: rgba(72, 175, 227, 0.2);
}

.card-featured {
    background: linear-gradient(160deg, #f0f9ff, white);
    border-color: rgba(72, 175, 227, 0.25);
    transform: translateY(-8px);
}

.card-featured.visible {
    transform: translateY(-8px);
}

.card-featured:hover {
    transform: translateY(-22px);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
}

.card-img-wrap img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-wrap img {
    transform: scale(1.07);
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.4), transparent 60%);
}

.card-number {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}

.card-body {
    padding: 28px 24px;
}

.card-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--texto);
    margin-bottom: 12px;
}

.card-body p {
    color: var(--texto-claro);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-cta {
    display: inline-block;
    text-decoration: none;
    color: var(--azul);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 8px 0;
    border-bottom: 2px solid rgba(72,175,227,0.3);
    transition: all 0.3s ease;
}

.card-cta:hover {
    border-color: var(--azul);
    letter-spacing: 1px;
}

/* ===========================
   PROCESO
=========================== */
.proceso {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gris) 0%, #1a2a3a 100%);
}

.proceso .titulo {
    color: white;
}

.proceso .section-tag {
    color: var(--azul);
}

.proceso-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.step {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(72,175,227,0.2);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    width: 180px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step:nth-child(1) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step:nth-child(5) { transition-delay: 0.3s; }
.step:nth-child(7) { transition-delay: 0.4s; }

.step:hover {
    background: rgba(72,175,227,0.1);
    border-color: var(--azul);
    transform: translateY(-6px);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.step-num {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--azul);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.step h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.step p {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    line-height: 1.5;
}

.step-arrow {
    color: var(--azul);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* ===========================
   GALERÍA
=========================== */
.galeria {
    padding: 100px 0 80px;
    background: var(--blanco);
}

.galeria-header {
    text-align: center;
    margin-bottom: 50px;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 240px);
    gap: 16px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.galeria-item.visible {
    opacity: 1;
    transform: scale(1);
}

.galeria-item:nth-child(1) { transition-delay: 0.1s; }
.galeria-item:nth-child(2) { transition-delay: 0.2s; }
.galeria-item:nth-child(3) { transition-delay: 0.3s; }
.galeria-item:nth-child(4) { transition-delay: 0.4s; }

.galeria-item-big {
    grid-column: span 2;
    grid-row: span 2;
}

.galeria-item-wide {
    grid-column: span 2;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.galeria-item:hover img {
    transform: scale(1.08);
}

.galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,13,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: 0.4s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ===========================
   CONTACTO
=========================== */
.contacto {
    padding: 100px 0;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2a3a 100%);
    position: relative;
    overflow: hidden;
}

.contacto-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(72,175,227,0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.contacto-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contacto .titulo {
    color: white;
    text-align: left;
    margin-top: 8px;
}

.contacto-desc {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 380px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: 0.3s;
}

.info-item:hover {
    color: var(--azul);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(72,175,227,0.15);
    border: 1px solid rgba(72,175,227,0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Contact Card */
.contacto-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    padding: 50px 40px;
    text-align: center;
}

.ccard-label {
    font-size: 0.8rem;
    color: var(--texto-claro);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ccard-big {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--texto);
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 16px;
}

.ccard-big span {
    color: var(--azul);
}

.ccard-sub {
    color: var(--texto-claro);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   FOOTER
=========================== */
footer {
    background: var(--negro);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 1.4rem;
}

footer p {
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--azul);
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contacto-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacto .titulo {
        text-align: center;
    }

    .contacto-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .grid-galeria {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .galeria-item-big,
    .galeria-item-wide {
        grid-column: span 2;
    }

    .proceso-steps {
        gap: 8px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .cursor, .cursor-follower {
        display: none;
    }

    body { cursor: auto; }
}

@media (max-width: 600px) {
    nav a { padding: 6px 12px; font-size: 0.8rem; }

    .cards { flex-direction: column; align-items: center; }

    .card-featured { transform: none; }
    .card-featured.visible { transform: none; }

    .grid-galeria {
        grid-template-columns: 1fr;
    }

    .galeria-item-big,
    .galeria-item-wide {
        grid-column: span 1;
    }
}
