/* ============================================================
   base.css
   Reset, body, tipografía global, utilidades y FAB WhatsApp.
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text-dark);
    background-color: var(--color-ivory);
    overflow-x: hidden;
    /* espacio para la lang-bar + nav fija */
    padding-top: calc(var(--lang-bar-height) + var(--nav-height));
}

img, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ── Tipografía base ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: var(--leading-tight);
    color: var(--color-ocean-deep);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-loose);
    color: var(--color-text-mid);
}

/* ── Helpers de sección ── */
.section {
    padding: var(--space-2xl) var(--space-xl);
}

.section--dark {
    background: linear-gradient(180deg, var(--color-ocean-deep) 0%, var(--color-ocean-mid) 100%);
    color: var(--color-white);
}

.section--white {
    background: var(--color-white);
}

.container {
    max-width: var(--max-width-md);
    margin-inline: auto;
    width: 100%;
}

.section-tag {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-turquoise);
    margin-bottom: var(--space-sm);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: var(--text-3xl);
}

.section-header h2 em {
    font-style: italic;
    color: var(--color-ocean-bright);
}

.section-header p {
    max-width: 560px;
    margin: 20px auto 0;
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--color-turquoise);
    margin-bottom: var(--space-md);
}

/* ── Botones globales ── */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-turquoise);
    color: var(--color-ocean-deep);
}
.btn--primary:hover {
    background: var(--color-aqua-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(46, 196, 212, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
    border-color: var(--color-turquoise);
    color: var(--color-turquoise);
}

.btn--wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.btn--wa::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    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;
}
.btn--wa:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    color: var(--color-white);
}

.btn--vip {
    background-color: #050a12;
    color: #c9a84c;
}
.btn--vip:hover {
    background-color: #0a1425; /* Un poco más claro al pasar el ratón */
}

/* ── FAB WhatsApp ── */
.fab-wa {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fab);
    transition: all var(--transition-normal);
    animation: fab-pulse 3s ease-in-out infinite;
}
.fab-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.7); }
}

/* ── Scroll reveal (clase que JS agrega) ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive base ── */
@media (max-width: 768px) {
    body {
        padding-top: calc(var(--lang-bar-height) + var(--nav-height));
    }

    .section {
        padding: 60px 24px;
    }

    .fab-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}