@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ── FONDO ───────────────────────────────────── */
.gradient-bg {
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
}

/* ── WHATSAPP FLOTANTE ───────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    background: #128C7E;
    animation: none;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70%  { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ── HERO ────────────────────────────────────── */
.hero-pattern {
    background: linear-gradient(rgba(26, 35, 50, 0.35), rgba(26, 35, 50, 0.45)),
                url('../img/webp/hormigon-teido.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ── CARDS ───────────────────────────────────── */
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ── CTA PULSE ───────────────────────────────── */
.cta-pulse {
    animation: ctaPulse 2s infinite;
}
@keyframes ctaPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ── LOGO ────────────────────────────────────── */
.gemtone-logo-text .gem  { color: #2a6fa8; }
.gemtone-logo-text .tone { color: #e8a020; }

/* ── MOSAICO DE COLORES ──────────────────────── */
.color-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    width: 52px;
    height: 52px;
}
.color-mosaic span {
    border-radius: 2px;
}

/* ── NÚMEROS DE PASO ─────────────────────────── */
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* ── EFECTOS DE TINTE EN FONDO ───────────────── */
.tinte-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    overflow: hidden;
    mix-blend-mode: multiply;
}
body > *:not(.tinte-bg):not(.whatsapp-float) {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════
   MEDIA QUERIES
══════════════════════════════════════════════ */

/* ── Móvil / tablet general (< 1023px) ─────── */
@media (max-width: 1023px) {
    .hero-pattern {
        min-height: 100svh;
        background-attachment: scroll;
    }
    .tinte-bg { display: none; }

    /* Desactivar hover lift en cards (no hay hover en touch) */
    .card-hover:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ── Tablets (641px – 1023px) ──────────────── */
@media (min-width: 641px) and (max-width: 1023px) {
    #inicio h1    { font-size: 3.5rem !important; }
    .h-56         { height: 220px; }

    section.py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Botones hero apilados */
    #inicio .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
    }
    #inicio .flex.flex-col.sm\:flex-row a {
        width: 100%;
        justify-content: center;
    }

    /* Formulario hero */
    #inicio form input,
    #inicio form select,
    #inicio form button {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }
}

/* ── Teléfonos (< 640px) ───────────────────── */
@media (max-width: 640px) {

    /* — Secciones — */
    section.py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* — Títulos — */
    #inicio h1,
    #inicio .lg\:text-7xl {
        font-size: 2.4rem !important;
        line-height: 1.1;
    }
    .text-4xl     { font-size: 1.6rem !important; }
    .text-5xl,
    .lg\:text-5xl { font-size: 1.8rem !important; }
    .lg\:text-6xl { font-size: 2rem   !important; }

    /* — Banner ventajas — */
    .bg-gradient-to-r span.font-black {
        font-size: 0.78rem !important;
        line-height: 1.4;
    }

    /* — Cards servicios: imagen más baja — */
    .h-56 { height: 180px; }

    /* ━━━━ BOTONES ━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

    /* Botones hero: columna, ancho completo */
    #inicio .flex.flex-col.sm\:flex-row {
        flex-direction: column !important;
        gap: 0.75rem;
    }
    #inicio .flex.flex-col.sm\:flex-row a {
        width: 100% !important;
        justify-content: center;
        font-size: 1rem !important;
        padding: 1rem 1.25rem !important;
    }

    /* Botones de tarjetas de servicios */
    .card-hover a[href="#contacto"] {
        padding: 0.85rem 1rem !important;
        font-size: 0.9rem !important;
        width: 100%;
    }

    /* Botón "VER COLORES" banner */
    #inicio ~ div a.bg-primary,
    .bg-gradient-to-r a {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    /* Botón CTA general */
    .cta-pulse {
        padding: 0.9rem 1.25rem !important;
        font-size: 0.95rem !important;
        width: 100%;
        justify-content: center;
    }

    /* Botones de secciones (Cotiza tu proyecto, etc.) */
    a.bg-secondary.font-black.px-10,
    a.bg-secondary.font-black.px-8 {
        width: 100%;
        justify-content: center;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* ━━━━ FORMULARIOS ━━━━━━━━━━━━━━━━━━━━━━━ */

    /* Formulario hero (cotización express) */
    #inicio form {
        padding: 1.25rem !important;
    }
    #inicio form input,
    #inicio form select,
    #inicio form button {
        font-size: 1rem !important;
        padding: 0.85rem 1rem !important;
        border-radius: 0.75rem !important;
    }
    #inicio form button {
        font-size: 1rem !important;
        padding: 1rem !important;
        gap: 0.5rem;
    }

    /* Formulario contacto */
    #contacto .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    #contacto input,
    #contacto select,
    #contacto textarea {
        font-size: 1rem !important;
        padding: 0.85rem 1rem !important;
        border-radius: 0.75rem !important;
    }
    #contacto button[type="submit"] {
        font-size: 1rem !important;
        padding: 1rem !important;
        gap: 0.5rem;
    }
    #contacto label {
        font-size: 0.9rem;
    }

    /* ━━━━ FOOTER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
    footer .grid     { text-align: center; }
    footer ul li     { justify-content: center !important; }
    footer .flex.gap-4 { justify-content: center; }

    /* ━━━━ PROCESO / PASOS ━━━━━━━━━━━━━━━━━━━ */
    .step-number {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    /* ━━━━ CONSIDERACIONES ━━━━━━━━━━━━━━━━━━━ */
    #cons-counter { display: none; }
    .cons-card .flex.items-center.gap-4 {
        gap: 0.75rem;
    }
}

/* ── Teléfonos pequeños (< 480px) ──────────── */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
    }
    .step-number {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .color-mosaic {
        width: 38px;
        height: 38px;
    }
    #inicio h1,
    #inicio .lg\:text-7xl {
        font-size: 2rem !important;
    }
    .h-56 { height: 160px; }
}
