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

:root {
    --black:   #000000;
    --white:   #ffffff;
    --pink:    #FF2EB8;
    --cyan:    #00E5FF;
    --purple:  #8B3DFF;
    --dark:    #080808;
    --card-bg: #0f0f0f;
    --border:  #1e1e1e;
    --muted:   #555555;
    --h:       'Cormorant Garamond', serif;
    --b:       'Inter', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 65px; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--b);
    overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.8rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: background .35s ease, padding .35s ease, opacity .4s ease;
}

nav.scrolled {
    background: rgba(0,0,0,.93);
    backdrop-filter: blur(12px);
    padding: 1.1rem 5rem;
    border-bottom: 1px solid var(--border);
    opacity: 1;
    pointer-events: auto;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; display: block; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: .28em;
    text-transform: uppercase;
    transition: color .3s;
}

.nav-links a:hover { color: var(--cyan); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    position: fixed;
    top: 1.1rem;
    right: 1.25rem;
    padding: 6px;
}

.nav-toggle span {
    width: 24px; height: 1.5px;
    background: var(--white);
    transition: all .3s;
    display: block;
}

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

/* ── MOBILE MENU PANEL ────────────────────── */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 997;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .4s ease, visibility .4s ease;
}

.nav-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }

.nav-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(290px, 78vw);
    z-index: 999;
    background: #050505;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 2.2rem;
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.77,0,.18,1);
}

.nav-panel.open { transform: translateX(0); }

.panel-logo { height: 26px; width: auto; display: block; margin-bottom: 2.2rem; opacity: .88; }

.panel-sep {
    width: 36px; height: 1px;
    background: linear-gradient(to right, var(--pink), var(--cyan));
    margin-bottom: 2.2rem;
}

.panel-links { list-style: none; width: 100%; }
.panel-links li { overflow: hidden; }

.panel-links a {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .28em;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    text-transform: uppercase;
    padding: .75rem 0;
    border-bottom: 1px solid transparent;
    transform: translateX(18px);
    opacity: 0;
    transition: color .3s, border-color .3s, transform .45s ease, opacity .45s ease;
}

.nav-panel.open .panel-links a { transform: translateX(0); opacity: 1; }
.nav-panel.open .panel-links li:nth-child(1) a { transition-delay: .08s; }
.nav-panel.open .panel-links li:nth-child(2) a { transition-delay: .15s; }
.nav-panel.open .panel-links li:nth-child(3) a { transition-delay: .22s; }
.nav-panel.open .panel-links li:nth-child(4) a { transition-delay: .29s; }
.nav-panel.open .panel-links li:nth-child(5) a { transition-delay: .36s; }

.panel-links a:hover { color: var(--white); border-bottom-color: rgba(0,229,255,.3); }

.panel-dots { display: flex; gap: .45rem; margin-top: 2.8rem; }
.panel-dots span { width: 6px; height: 6px; border-radius: 50%; }
.panel-dots span:nth-child(1) { background: var(--pink); }
.panel-dots span:nth-child(2) { background: var(--cyan); }
.panel-dots span:nth-child(3) { background: var(--purple); }

/* ── HERO ─────────────────────────────────── */
#inicio {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#inicio::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 70px 70px;
}

.glow { position: absolute; border-radius: 50%; filter: blur(130px); pointer-events: none; }
.glow-1 { width: 700px; height: 700px; background: var(--cyan);   top: -250px; right: -150px; opacity: .05; }
.glow-2 { width: 600px; height: 600px; background: var(--purple); bottom: -150px; left: -150px; opacity: .07; }
.glow-3 { width: 500px; height: 500px; background: var(--cyan);   top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .03; }

.hero-content { position: relative; z-index: 1; text-align: center; animation: fadeUp 1.2s ease both; }

.hero-logo { width: min(500px, 82vw); display: block; margin: 0 auto 3.2rem; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .95rem 2.8rem;
    border: 1px solid rgba(255,255,255,.18);
    color: var(--white);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: border-color .3s, color .3s;
}

.hero-cta::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--pink), var(--cyan), var(--purple));
    opacity: 0;
    transition: opacity .35s;
}

.hero-cta:hover { border-color: transparent; color: var(--white); }
.hero-cta:hover::after { opacity: 1; }
.hero-cta span { position: relative; z-index: 1; }

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    margin: 2.8rem auto 0;
    width: fit-content;
    animation: bounce 2.5s ease infinite;
}

.scroll-hint p { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.25); }
.scroll-hint i { color: rgba(255,255,255,.2); font-size: .85rem; }

/* ── SECTION COMMONS ──────────────────────── */
section { padding: 2.5rem 5rem 6rem; }

.sec-head { text-align: center; margin-bottom: 5.5rem; }

.sec-label {
    display: block;
    font-size: .66rem;
    letter-spacing: .38em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.2rem;
}

.sec-title { font-family: var(--h); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 300; line-height: 1.1; }
.sec-title strong { font-weight: 600; }

.sec-line {
    width: 56px; height: 2px;
    background: linear-gradient(to right, var(--pink), var(--cyan));
    margin: 1.6rem auto 0;
}

/* ── SERVICES ─────────────────────────────── */
#servicios { background: var(--dark); }

.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1240px;
    margin: 0 auto;
    border: 1px solid var(--border);
    gap: 1px;
    background: var(--border);
}

.svc-card {
    background: var(--black);
    padding: 2.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: background .3s;
}

.svc-card::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, var(--pink), var(--cyan), var(--purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s ease;
}

.svc-card:hover { background: #0c0c0c; }
.svc-card:hover::after { transform: scaleX(1); }

.svc-icon { font-size: 1.5rem; }
.svc-card:nth-child(1) .svc-icon { color: var(--cyan); }
.svc-card:nth-child(2) .svc-icon { color: var(--pink); }
.svc-card:nth-child(3) .svc-icon { color: var(--purple); }
.svc-card:nth-child(4) .svc-icon { color: var(--cyan); }
.svc-card:nth-child(5) .svc-icon { color: var(--pink); }
.svc-card:nth-child(6) .svc-icon { color: var(--purple); }
.svc-card:nth-child(7) .svc-icon { color: var(--cyan); }
.svc-card:nth-child(8) .svc-icon { color: var(--pink); }

.svc-name { font-size: 1rem; font-weight: 500; letter-spacing: .04em; }
.svc-desc { font-size: .8rem; color: var(--muted); line-height: 1.75; }

/* ── GALLERY ──────────────────────────────── */
#galeria { background: var(--black); }

.carousel-wrap { max-width: 1100px; margin: 0 auto; position: relative; }
.carousel-track { overflow: hidden; }
.carousel-inner { display: flex; transition: transform .65s cubic-bezier(.77,0,.18,1); }

.slide {
    min-width: 100%;
    aspect-ratio: 16/9;
    max-height: 480px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.slide:nth-child(1) { background: radial-gradient(ellipse at 30% 50%, #3d0038 0%, #000 70%); }
.slide:nth-child(2) { background: radial-gradient(ellipse at 70% 50%, #002a3d 0%, #000 70%); }
.slide:nth-child(3) { background: radial-gradient(ellipse at 50% 30%, #18003d 0%, #000 70%); }
.slide:nth-child(4) { background: radial-gradient(ellipse at 30% 70%, #3d0028 0%, #000 70%); }
.slide:nth-child(5) { background: radial-gradient(ellipse at 80% 30%, #00203d 0%, #000 70%); }
.slide:nth-child(6) { background: radial-gradient(ellipse at 50% 80%, #1a003d 0%, #000 70%); }

.slide-placeholder { text-align: center; color: rgba(255,255,255,.2); }
.slide-placeholder i { font-size: 3rem; display: block; margin-bottom: .8rem; }
.slide-placeholder span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }

.car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    background: rgba(0,0,0,.7);
    border: 1px solid var(--border);
    color: rgba(255,255,255,.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    z-index: 10;
    transition: border-color .3s, color .3s;
}

.car-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.car-prev { left: -23px; }
.car-next { right: -23px; }

.car-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 2rem; }

.dot {
    width: 6px; height: 6px;
    border-radius: 3px;
    background: var(--border);
    cursor: pointer;
    transition: all .35s;
}

.dot.on { background: var(--cyan); width: 22px; }

/* ── CLIENTES ─────────────────────────────── */
#clientes { background: var(--dark); }

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    max-width: 1200px;
    margin: 0 auto;
}

.client-card {
    background: var(--black);
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.8rem 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: .25;
    transition: opacity .7s ease, background .7s ease, box-shadow .7s ease;
}

.client-card.span-2 { grid-column: span 2; }

.client-card.lit-cyan   { opacity: 1; background: #050e10; box-shadow: inset 0 0 0 1px rgba(0,229,255,.35); }
.client-card.lit-pink   { opacity: 1; background: #100510; box-shadow: inset 0 0 0 1px rgba(255,46,184,.35); }
.client-card.lit-purple { opacity: 1; background: #070510; box-shadow: inset 0 0 0 1px rgba(139,61,255,.35); }

.client-logo-wrap { width: 100%; height: 62px; display: flex; align-items: center; justify-content: center; }

.client-logo {
    height: 54px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    opacity: .3;
    transition: opacity .7s ease, filter .7s ease;
}

.client-logo[alt="Universidad San Sebastián"] { max-width: 220px; }
.client-logo[alt="Waitara Surf Club"] { height: 90px; max-width: 90px; }

.client-card.lit-cyan .client-logo,
.client-card.lit-pink .client-logo,
.client-card.lit-purple .client-logo { opacity: 1; filter: none; }

.client-icon { font-size: 1.3rem; margin-bottom: .55rem; color: rgba(255,255,255,.2); transition: color .7s ease; }
.client-card.lit-cyan   .client-icon { color: var(--cyan); }
.client-card.lit-pink   .client-icon { color: var(--pink); }
.client-card.lit-purple .client-icon { color: var(--purple); }

.client-name { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.3); transition: color .7s ease; }
.client-card.lit-cyan .client-name,
.client-card.lit-pink .client-name,
.client-card.lit-purple .client-name { color: var(--white); }

.client-type { font-size: .62rem; letter-spacing: .1em; color: rgba(255,255,255,.15); margin-top: .3rem; transition: color .7s ease; }
.client-card.lit-cyan   .client-type { color: rgba(0,229,255,.6); }
.client-card.lit-pink   .client-type { color: rgba(255,46,184,.6); }
.client-card.lit-purple .client-type { color: rgba(139,61,255,.6); }

/* ── CONTACT ──────────────────────────────── */
#contacto {
    background: var(--dark);
    padding: 1.5rem 5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

#contacto .sec-head  { margin-bottom: 1.8rem; }
#contacto .sec-label { margin-bottom: .6rem; }
#contacto .sec-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
#contacto .sec-line  { margin-top: .8rem; }
#contacto .ci-title  { font-size: 1.25rem; margin-bottom: .5rem; line-height: 1.3; }
#contacto .ci-body   { font-size: .8rem; margin-bottom: 1.2rem; }
#contacto .channels  { gap: .6rem; }
#contacto .channel   { padding: .65rem 1rem; }
#contacto .ch-icon   { width: 28px; height: 28px; font-size: .9rem; }

.contact-wrap { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 7rem; align-items: start; }

.contact-centered { grid-template-columns: 1fr; max-width: 560px; text-align: center; }
.contact-centered .channels { max-width: 420px; margin: 0 auto; }

.ci-title { font-family: var(--h); font-size: 2.2rem; font-weight: 300; line-height: 1.35; margin-bottom: 1.5rem; }
.ci-body  { font-size: .84rem; color: var(--muted); line-height: 1.85; margin-bottom: 2.8rem; }

.channels { display: flex; flex-direction: column; gap: .9rem; }

.channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .95rem 1.2rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--white);
    font-size: .84rem;
    transition: border-color .3s;
}

.channel:hover { border-color: var(--cyan); }

.ch-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.channel.wa   .ch-icon { color: #25D366; }
.channel.mail .ch-icon { color: var(--cyan); }

.ch-lbl { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }

/* ── FOOTER ───────────────────────────────── */
footer {
    background: #030303;
    border-top: 1px solid var(--border);
    padding: 1.8rem 5rem 1.2rem;
}

.ft-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.ft-brand { display: flex; align-items: flex-start; gap: 1.2rem; }
.ft-e { height: 40px; width: auto; display: block; flex-shrink: 0; }
.ft-about { font-size: .78rem; color: var(--muted); line-height: 1.8; max-width: 260px; }

.ft-col h4 { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: .6rem; color: rgba(255,255,255,.45); }
.ft-col ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 0; }
.ft-col ul li { display: flex; align-items: center; }

.ft-col ul li::after { content: '·'; color: rgba(255,255,255,.15); font-size: .9rem; margin: 0 .55rem; }
.ft-col ul li:last-child::after { display: none; }

.ft-col ul a { font-size: .78rem; color: var(--muted); text-decoration: none; transition: color .3s; }
.ft-col ul a:hover { color: var(--cyan); }

.ft-right { display: flex; align-items: center; gap: 1.4rem; }

.ft-social { display: flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--muted); font-size: .72rem; letter-spacing: .08em; transition: color .3s; }
.ft-social:hover { color: var(--white); }
.ft-social i { color: var(--pink); font-size: 1rem; transition: color .3s; }

.ft-bot { display: flex; justify-content: space-between; align-items: center; }
.ft-copy { font-size: .72rem; color: #333; }

.ft-dots { display: flex; gap: .5rem; }
.ft-dot { width: 7px; height: 7px; border-radius: 50%; }
.ft-dot:nth-child(1) { background: var(--pink); }
.ft-dot:nth-child(2) { background: var(--cyan); }
.ft-dot:nth-child(3) { background: var(--purple); }

/* ── WA FLOTANTE ──────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 0 0 0 rgba(0,229,255,.5);
    animation: wa-pulse 2.8s ease infinite;
    transition: transform .3s ease, box-shadow .3s ease;
}

.wa-float:hover { transform: scale(1.1); box-shadow: 0 0 24px rgba(0,229,255,.35); animation: none; }

/* ── REVEAL ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* ── KEYFRAMES ────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(36px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(9px); }
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,229,255,.45); }
    70%  { box-shadow: 0 0 0 14px rgba(0,229,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 1100px) {
    section { padding: 2rem 3rem 5rem; }
    nav, nav.scrolled { padding-left: 3rem; padding-right: 3rem; }
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrap { gap: 4rem; }
    .ft-top { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
    .clients-grid { grid-template-columns: repeat(3, 1fr); }
    .client-card.span-2 { grid-column: span 1; }
}

@media (max-width: 768px) {
    nav { padding: 1.1rem 1.25rem; }
    nav.scrolled { padding: 1rem 1.25rem; }
    .nav-logo img { height: 26px; }
    .nav-links { display: none !important; }
    .nav-toggle { display: flex; }
    .glow { display: none; }
    section { padding: 2rem 1.25rem 5rem; }
    .hero-logo { width: min(340px, 78vw); }
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .svc-card { padding: 2rem 1.25rem; }
    .carousel-wrap { padding: 0 2rem; }
    .car-prev { left: 0; }
    .car-next { right: 0; }
    .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
    .ci-title { font-size: 1.7rem; }
    footer { padding: 1.8rem 1.25rem 1rem; }
    .ft-top { grid-template-columns: 1fr; gap: 1.4rem; align-items: start; }
    .ft-brand { flex-direction: row; align-items: center; }
    .ft-e { height: 32px; }
    .ft-about { font-size: .74rem; }
    .ft-col ul li::after { margin: 0 .4rem; }
    .ft-bot { flex-direction: column; gap: .6rem; text-align: center; }
    .ft-copy { font-size: .68rem; }
}

@media (max-width: 540px) {
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .client-card { min-height: 100px; }
}

@media (max-width: 480px) {
    section { padding: 1.5rem 1rem 4rem; }
    .svc-grid { grid-template-columns: 1fr; }
    .hero-logo { width: min(280px, 86vw); }
    .sec-title { font-size: 2.2rem; }
    .hero-cta { padding: .85rem 2rem; font-size: .68rem; }
    .carousel-wrap { padding: 0 1rem; }
    .ft-about { display: none; }
}
