/* =============================================
   GLOBAL — IronBlock
   ============================================= */

/* Variables */
:root {
    --primary:      #FFC107;
    --primary-dark: #E6AC00;
    --secondary:    #212121;
    --light:        #FFFFFF;
    --gray:         #757575;
    --light-gray:   #F5F5F5;
    --dark:         #000000;
    --overlay:      rgba(0, 0, 0, 0.275);
    --transition:   all 0.3s ease;
    --radius:       8px;
    --shadow-sm:    0 4px 12px rgba(0,0,0,0.15);
    --shadow-md:    0 8px 24px rgba(0,0,0,0.25);
    --shadow-lg:    0 20px 48px rgba(0,0,0,0.4);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Nota: cada sección que necesita un overlay propio (.models, .contact,
   .custom-section) define su propio ::before o capa. No agregamos un overlay
   global aquí porque tendría mayor especificidad que los section-specific
   y oscurecería de más sus fondos. */
section:not(.hero) > .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    color: var(--light);
}
.section-title .highlight { color: var(--primary); }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.65;
}

/* ── Botones ────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.25);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: var(--light);
    color: var(--secondary);
    border-color: var(--light);
    transform: translateY(-2px);
}

/* ── WhatsApp flotante ──────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #25D366;
    color: #fff;
    border-radius: 50px;
    padding: 0.75rem 1.2rem 0.75rem 0.85rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    max-width: 58px; /* solo ícono por defecto */
}

.whatsapp-float i {
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.whatsapp-float-label {
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-width 0.4s ease;
}

.whatsapp-float:hover {
    max-width: 200px;
    background: #128C7E;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

.whatsapp-float:hover .whatsapp-float-label {
    opacity: 1;
    max-width: 120px;
}

.whatsapp-float:hover i {
    transform: rotate(-10deg) scale(1.1);
}

/* Pulso animado */
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: #25D366;
    z-index: -1;
    animation: wa-pulse 2.5s ease-out infinite;
}

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

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem;
        border-radius: 50%;
        max-width: none;
    }
    .whatsapp-float-label { display: none; }
    .whatsapp-float:hover { border-radius: 50%; max-width: none; }
}

/* ── Animaciones de scroll ──────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive global ──────────────────────── */
@media (max-width: 768px) {
    .section-title   { font-size: 2.1rem; }
    .section-subtitle { font-size: 0.95rem; }
    .btn { padding: 10px 22px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.85rem; }
}