/* ===========================
   VARIABLES & RESET
=========================== */
:root {
    --amber: #48afe3;
    --amber-dark: #2980b9;
    --amber-glow: rgba(72, 175, 227, 0.35);
    --negro: #14161a;
    --negro-2: #1d2026;
    --blanco: #f6f3ed;
    --crema: #efe9df;
    --gris: #5b6770;
    --gris-claro: #e7e2d8;
    --texto: #1f2226;
    --texto-claro: #767b82;
    --linea: rgba(31, 34, 38, 0.12);
    --font-display: 'Anton', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --radius: 14px;
    --shadow: 0 20px 60px rgba(20,22,26,0.12);
}

* {
    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: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 2px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: width 0.2s, height 0.2s, background 0.2s, border-radius 0.2s;
}

.cursor-follower {
    position: fixed;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--negro);
    border-radius: 2px;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.15s ease;
    opacity: 0.35;
}

.cursor.cursor-hover {
    width: 14px;
    height: 14px;
    background: var(--amber-dark);
    border-radius: 50%;
}

.cursor-follower.cursor-hover {
    width: 52px;
    height: 52px;
    opacity: 0.5;
    border-color: var(--amber);
    border-radius: 50%;
}

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

/* ===========================
   BLUEPRINT MARKS (signature motif)
=========================== */
.crop-mark {
    position: absolute;
    pointer-events: none;
    opacity: 0.35;
}
.crop-mark::before, .crop-mark::after {
    content: '';
    position: absolute;
    background: var(--negro);
}
.crop-mark.tl { top: 18px; left: 18px; }
.crop-mark.tr { top: 18px; right: 18px; }
.crop-mark.bl { bottom: 18px; left: 18px; }
.crop-mark.br { bottom: 18px; right: 18px; }
.crop-mark::before { width: 16px; height: 1px; }
.crop-mark::after { width: 1px; height: 16px; }
.crop-mark.tl::before, .crop-mark.tl::after { top: 0; left: 0; }
.crop-mark.tr::before, .crop-mark.tr::after { top: 0; right: 0; }
.crop-mark.bl::before, .crop-mark.bl::after { bottom: 0; left: 0; }
.crop-mark.br::before, .crop-mark.br::after { bottom: 0; right: 0; }
.crop-mark.light::before, .crop-mark.light::after { background: rgba(246,243,237,0.5); }

.tag-mono {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===========================
   HEADER
=========================== */
header {
    background: rgba(246, 243, 237, 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 var(--linea);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(20,22,26,0.06);
}

.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.7rem;
    letter-spacing: 1px;
    color: var(--texto);
    text-transform: uppercase;
}

.logo-accent {
    color: var(--amber);
    -webkit-text-stroke: 1.5px var(--texto);
    text-stroke: 1.5px var(--texto);
}

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

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

nav a:hover {
    color: var(--texto);
    background: var(--negro);
    color: var(--blanco);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid var(--linea);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--texto);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO
=========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--blanco);
    padding: 100px 0 60px;
}

/* Background blueprint grid */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    background-image:
        linear-gradient(var(--linea) 1px, transparent 1px),
        linear-gradient(90deg, var(--linea) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 75%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 75%);
}

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

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

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(91, 103, 112, 0.12);
    bottom: 60px;
    left: -60px;
    animation-delay: -3s;
}

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

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

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--negro);
    color: var(--amber);
    padding: 8px 18px 8px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
    font-family: var(--font-mono);
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
    animation: blink-dot 2s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 8vw, 7rem);
    line-height: 0.98;
    letter-spacing: 1px;
    color: var(--texto);
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
}

.accent-line {
    color: var(--amber);
}

.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;
    max-width: 460px;
    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: 2.2rem;
    color: var(--texto);
    letter-spacing: 1px;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--linea);
}

/* 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;
    border: 1px solid var(--linea);
    border-radius: 24px;
    background: var(--crema);
}

.hero-img-frame::before,
.hero-img-frame::after {
    content: '';
    position: absolute;
    border: 1px solid var(--negro);
    opacity: 0.4;
}
.hero-img-frame::before {
    top: 16px; left: 16px; width: 24px; height: 24px;
    border-right: none; border-bottom: none;
}
.hero-img-frame::after {
    bottom: 16px; right: 16px; width: 24px; height: 24px;
    border-left: none; border-top: none;
}

.hero-logo {
    width: 230px;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

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

.frame-deco-1 {
    width: 340px;
    height: 340px;
    border: 1px dashed rgba(31,34,38,0.15);
    animation-delay: 0s;
    border-radius: 0;
    transform: rotate(45deg);
}

.frame-deco-2 {
    display: none;
}

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

.floating-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--negro);
    color: var(--blanco);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(20,22,26,0.25);
    animation: float 4s ease-in-out infinite;
    animation-delay: -2s;
    z-index: 10;
}

.floating-badge span {
    color: var(--amber);
}

/* 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.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: var(--font-mono);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--amber), 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-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 15px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--negro);
    color: var(--blanco);
    box-shadow: 0 8px 30px rgba(20, 22, 26, 0.25);
}

.btn-primary:hover {
    background: var(--amber);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(72, 175, 227, 0.35);
}

.btn-ghost {
    border: 1.5px solid var(--linea);
    color: var(--texto);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--negro);
    border-color: var(--negro);
    color: var(--blanco);
    transform: translateY(-3px);
}

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

.btn-white:hover {
    background: var(--amber);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.btn-wpp {
    background: var(--amber);
    color: var(--blanco);
    box-shadow: 0 8px 30px rgba(72, 175, 227, 0.35);
}

.btn-wpp:hover {
    background: var(--negro);
    color: var(--amber);
    transform: translateY(-3px);
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: 14px;
    font-family: var(--font-mono);
    padding-left: 28px;
    position: relative;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 1px;
    background: var(--amber-dark);
}

.section-tag.light {
    color: var(--amber);
}
.section-tag.light::before {
    background: var(--amber);
}

.titulo {
    font-family: var(--font-display);
    text-align: center;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: 1px;
    color: var(--texto);
    margin-bottom: 16px;
    text-transform: uppercase;
}

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

.section-header .section-tag {
    padding-left: 0;
}
.section-header .section-tag::before {
    display: none;
}

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

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

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

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    width: 340px;
    box-shadow: 0 4px 30px rgba(20,22,26,0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--linea);
    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(20,22,26,0.12);
    border-color: var(--negro);
}

.card-featured {
    background: var(--negro);
    border-color: var(--negro);
    transform: translateY(-8px);
}

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

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

.card-featured .card-body h3,
.card-featured .card-body p {
    color: var(--blanco);
}
.card-featured .card-body p {
    color: rgba(246,243,237,0.6);
}
.card-featured .card-cta {
    color: var(--amber);
    border-bottom-color: rgba(72, 175, 227, 0.3);
}
.card-featured .card-cta:hover {
    border-bottom-color: var(--amber);
}

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

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

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

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

.card-number {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--amber);
    color: var(--blanco);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 6px;
}

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

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

.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(--texto);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 0;
    border-bottom: 2px solid var(--linea);
    transition: all 0.3s ease;
}

.card-cta:hover {
    border-color: var(--amber);
    color: var(--amber-dark);
    letter-spacing: 2px;
}

/* ===========================
   PROCESO
=========================== */
.proceso {
    padding: 100px 0;
    background: var(--negro);
    position: relative;
    overflow: hidden;
}

.proceso::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(246,243,237,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246,243,237,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.proceso .titulo {
    color: var(--blanco);
}

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

.proceso-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.step {
    background: rgba(246,243,237,0.03);
    border: 1px solid rgba(246,243,237,0.1);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: left;
    width: 220px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
}

.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.06);
    border-color: var(--amber);
    transform: translateY(-6px);
}

.step-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--amber);
    letter-spacing: 2px;
    margin-bottom: 8px;
    position: absolute;
    top: 28px;
    right: 24px;
}

.step h4 {
    color: var(--blanco);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step p {
    color: rgba(246,243,237,0.45);
    font-size: 0.85rem;
    line-height: 1.5;
}

.step-arrow {
    color: var(--amber);
    font-size: 1.5rem;
    opacity: 0.4;
    display: flex;
    align-items: center;
}

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

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

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

.categoria-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--linea);
    cursor: pointer;
}

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

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

.categoria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: saturate(0.9);
}

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

.categoria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,22,26,0.78) 0%, rgba(20,22,26,0.15) 50%, transparent 75%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: 0.4s;
}

.categoria-item:hover .categoria-overlay {
    background: linear-gradient(to top, rgba(20,22,26,0.88) 0%, rgba(20,22,26,0.25) 55%, transparent 80%);
}

.categoria-nombre {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.categoria-count {
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 4px;
    font-family: var(--font-mono);
}

/* ===========================
   MODAL DE GALERÍA
=========================== */
body.no-scroll {
    overflow: hidden;
}

.galeria-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20,22,26,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.galeria-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.galeria-modal-inner {
    background: var(--blanco);
    border-radius: var(--radius);
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.galeria-modal.open .galeria-modal-inner {
    transform: translateY(0) scale(1);
}

.galeria-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--linea);
    background: var(--negro);
    color: var(--blanco);
}

.galeria-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.galeria-modal-close {
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.galeria-modal-close:hover {
    color: var(--amber);
}

.galeria-modal-grid {
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.modal-img-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--linea);
    aspect-ratio: 4 / 3;
}

.modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.modal-img-wrap:hover img {
    transform: scale(1.05);
}

/* ===========================
   CONTACTO
=========================== */
.contacto {
    padding: 110px 0;
    background: var(--negro);
    position: relative;
    overflow: hidden;
}

.contacto-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(246,243,237,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246,243,237,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    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: var(--blanco);
    text-align: left;
    margin-top: 8px;
}

.contacto-desc {
    color: rgba(246,243,237,0.5);
    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(246,243,237,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: 0.3s;
}

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

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(246,243,237,0.05);
    border: 1px solid rgba(246,243,237,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Contact Card */
.contacto-card {
    background: var(--blanco);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    padding: 50px 40px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
}

.ccard-label {
    font-size: 0.75rem;
    color: var(--texto-claro);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-family: var(--font-mono);
}

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

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

.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(246,243,237,0.06);
}

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

.footer-logo {
    font-size: 1.4rem;
    color: var(--blanco);
}
.footer-logo .logo-accent {
    -webkit-text-stroke: 1.5px var(--blanco);
}

footer p {
    color: rgba(246,243,237,0.3);
    font-size: 0.82rem;
}

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

.footer-links a {
    text-decoration: none;
    color: rgba(246,243,237,0.3);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

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

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

/* ===========================
   WHATSAPP / AI AGENT WIDGET
=========================== */
.wpp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1200;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--negro);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 35px rgba(20,22,26,0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpp-fab:hover {
    background: var(--amber);
    color: var(--blanco);
    transform: translateY(-4px) scale(1.05);
}

.wpp-fab svg {
    width: 26px;
    height: 26px;
}

.wpp-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--amber);
    animation: wpp-pulse 2.4s ease-out infinite;
}

@keyframes wpp-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.7); opacity: 0; }
}

.wpp-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: 1200;
    width: 330px;
    max-width: calc(100vw - 40px);
    background: var(--blanco);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(20,22,26,0.3);
    border: 1px solid var(--linea);
    overflow: hidden;
    transform: translateY(20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wpp-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.wpp-panel-header {
    background: var(--negro);
    color: var(--blanco);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.wpp-panel-header-text {
    flex: 1;
    min-width: 0;
}

.wpp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--amber);
    color: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.wpp-panel-header h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.wpp-status {
    font-size: 0.72rem;
    color: rgba(246,243,237,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
}

.wpp-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
}

.wpp-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(246,243,237,0.5);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.wpp-close:hover { color: var(--blanco); }

.wpp-panel-body {
    padding: 20px;
}

.wpp-msg {
    background: var(--crema);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--texto);
    margin-bottom: 18px;
}

.wpp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wpp-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    background: white;
    border: 1px solid var(--linea);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--texto);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.wpp-option:hover {
    border-color: var(--amber);
    background: rgba(72, 175, 227, 0.06);
    transform: translateX(4px);
}

.wpp-option-arrow {
    color: var(--amber-dark);
    font-weight: 700;
}

.wpp-foot {
    margin-top: 16px;
    font-size: 0.72rem;
    color: var(--texto-claro);
    text-align: center;
    font-family: var(--font-mono);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--blanco);
        border-bottom: 1px solid var(--linea);
        box-shadow: 0 10px 30px rgba(20,22,26,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        gap: 0;
    }

    nav.open {
        max-height: 320px;
    }

    nav a {
        padding: 14px 24px;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid var(--linea);
    }

    .header-inner {
        position: relative;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

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

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .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-categorias {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 380px);
    }

    .proceso-steps {
        gap: 8px;
    }

    .step {
        width: 100%;
        max-width: 320px;
    }

    .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 10px; font-size: 0.75rem; }

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

    .card { width: 100%; max-width: 380px; }

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

    .grid-categorias {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .categoria-item {
        height: 280px;
    }

    .galeria-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        padding: 14px;
    }

    .galeria-modal-inner {
        max-height: 90vh;
    }

    .wpp-panel {
        right: 16px;
        bottom: 92px;
        width: calc(100vw - 32px);
    }

    .wpp-fab {
        right: 16px;
        bottom: 20px;
    }
}
