/* ═══════════════════════════════════════════
   RIXIDO — Soluciones en Publicidad
   Estilos compartidos · styles.css
   ═══════════════════════════════════════════ */

:root {
    /* Paleta Rixido Brand */
    --brand:       #E02071;
    --brand-dark:  #b8185d;
    --brand-soft:  #fde8f1;
    --teal:        #005E82;
    --teal-soft:   #e0f0f6;
    --gold:        #F9A91F;
    --black:       #000000;

    --bg:          #f8f8f8;
    --surface:     #ffffff;
    --text-main:   #0d0d0d;
    --text-muted:  #5a5a5a;
    --line:        rgba(0, 0, 0, 0.08);
    --glass:       rgba(255, 255, 255, 0.75);

    --grad-brand: linear-gradient(90deg, #E02071 0%, #005E82 100%);

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 12px 24px -8px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 40px 64px -12px rgba(0,0,0,0.14);

    --radius:    28px;
    --radius-sm: 18px;
    --max-w:     1240px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Poppins', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-weight: 700; }
p  { font-weight: 400; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Línea decorativa de marca ── */
.brand-line {
    display: block;
    height: 3px;
    background: var(--grad-brand);
    border-radius: 99px;
    width: 60px;
    margin-bottom: 1.25rem;
}

/* ── Botones ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    border-radius: 99px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    gap: 0.5rem;
    border: none;
}

.btn--primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 8px 16px -4px rgba(224, 32, 113, 0.35);
}
.btn--primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(224, 32, 113, 0.45);
}

.btn--secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1.5px solid var(--line);
}
.btn--secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

.btn--teal {
    background: var(--teal);
    color: white;
    box-shadow: 0 8px 16px -4px rgba(0, 94, 130, 0.3);
}
.btn--teal:hover { background: #004d6b; transform: translateY(-2px); }

/* ── Header ── */
.header {
    position: fixed;
    top: 1.25rem;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header__nav {
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.25rem;
    box-shadow: var(--shadow-md);
}

.logo img { height: 64px; width: auto; display: block; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.85rem;
    transition: color 0.25s;
    z-index: 0;
}

/* Hover box: forma del logo */
.nav-links a::before {
    content: '';
    position: absolute;
    inset: -5px -10px;
    border-radius: 8px;
    background: var(--grad-brand);
    transform: skewX(-10deg);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -2;
}
/* Capa interior: deja 2px de borde degradado visible */
.nav-links a::after {
    content: '';
    position: absolute;
    inset: -3px -8px;
    border-radius: 6px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: skewX(-10deg);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.nav-links a:hover::before,
.nav-links a:hover::after,
.nav-links a.active::before,
.nav-links a.active::after { opacity: 1; }

.nav-links a:hover,
.nav-links a.active { color: var(--text-main); }

/* ── Secciones ── */
.section { padding: 8rem 0; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section-header .brand-line { margin: 0 auto 1.25rem; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); }

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge--brand { background: var(--brand-soft); color: var(--brand); }
.badge--teal  { background: var(--teal-soft);  color: var(--teal);  }
.badge--dark  { background: rgba(255,255,255,0.15); color: white; }

/* ── CTA Section ── */
.cta-wrap { background: white; padding: 8rem 0; }

.cta {
    background: var(--black);
    color: white;
    border-radius: 36px;
    padding: 5rem;
    text-align: center;
    overflow: hidden;
    position: relative;
}
.cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-brand);
}
.cta h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 1rem; }
.cta p  { font-size: 1.1rem; opacity: 0.7; margin-bottom: 2.75rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta__glow-1 { position: absolute; top: -60%; left: -5%; width: 500px; height: 500px; background: var(--brand); filter: blur(160px); opacity: 0.12; }
.cta__glow-2 { position: absolute; bottom: -60%; right: -5%; width: 400px; height: 400px; background: var(--teal); filter: blur(140px); opacity: 0.12; }

/* ── Footer ── */
.footer {
    background: var(--black);
    color: white;
    position: relative;
}

/* Línea degradada de marca arriba */
.footer::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--grad-brand);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 3rem;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Col 1: Logo + descripción */
.footer__brand .logo-box {
    background: white;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.footer__brand .logo-box img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}
.footer__brand p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 28ch;
}

/* Cols 2 & 3: Links */
.footer__col h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.25rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer__col ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer__col ul li a:hover { color: var(--brand); }

/* Col 4: Contacto */
.footer__contact h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.25rem;
}
.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.footer__contact-item:hover { color: var(--brand); }
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer__contact-item span { line-height: 1.5; }

/* Barra inferior */
.footer__bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.footer__bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer__bottom a { color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; }
.footer__bottom a:hover { color: var(--brand); }

/* ── Galería con filtros (páginas interiores) ── */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}
.filter-btn {
    padding: 0.55rem 1.25rem;
    border-radius: 99px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.gallery-item__info { padding: 1.25rem; }
.gallery-item__info h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.gallery-item__info p  { font-size: 0.85rem; color: var(--text-muted); }

/* ── Formulario de cotización ── */
.quote-form {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 3rem;
    border: 1px solid var(--line);
    max-width: 640px;
    margin: 0 auto;
}
.quote-form h3 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.quote-form > p { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--bg);
    transition: border-color 0.2s;
    outline: none;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--brand); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { width: 100%; margin-top: 0.5rem; justify-content: center; font-size: 1rem; padding: 1.1rem; }

/* ── Botón flotante WhatsApp ── */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 1.75rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.wa-float__btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    /* Sombra asimétrica premium */
    box-shadow:
        0 4px 6px rgba(37, 211, 102, 0.25),
        0 12px 28px rgba(37, 211, 102, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
}

.wa-float:hover .wa-float__btn {
    transform: scale(1.1) translateY(-3px);
    box-shadow:
        0 8px 12px rgba(37, 211, 102, 0.3),
        0 20px 40px rgba(37, 211, 102, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.wa-float__btn svg { flex-shrink: 0; }

.wa-float__label {
    background: var(--black);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.wa-float:hover .wa-float__label {
    opacity: 1;
    transform: translateX(0);
}

/* Pulso de atención */
.wa-float__btn::after {
    content: '';
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ── Hamburger button ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 99px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 1.25rem; }
    .footer__grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer__bottom { justify-content: center; text-align: center; }
    .quote-form { padding: 2rem 1.5rem; }
    .form-row { grid-template-columns: 1fr; }

    /* Mostrar hamburger, ocultar CTA del header */
    .nav-toggle { display: flex; }
    .header__nav > .btn { display: none; }

    /* Nav links: oculto por defecto, dropdown al abrirse */
    .header__nav { position: relative; flex-wrap: wrap; }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.6rem);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.15rem;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255,255,255,0.5);
        border-radius: 14px;
        padding: 0.75rem;
        box-shadow: var(--shadow-md);
        z-index: 100;
    }
    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 0.8rem 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
    }
    /* Quitar el efecto skew en móvil */
    .nav-links a::before,
    .nav-links a::after { display: none; }
    .nav-links a:hover,
    .nav-links a.active {
        background: var(--brand-soft);
        color: var(--brand);
    }
}

@media (max-width: 640px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .section { padding: 5rem 0; }
    .logo img { height: 60px; }
    .wa-float__label { display: none; }
}
