@import url('https://fonts.googleapis.com/css2?family=Rampart+One&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rampart+One&family=Inter:wght@300;400;600&display=swap');
/* ── Variables ── */
:root {
    --bg: #fdf8f2;
    --card-bg: #ebf9f4;
    --card-border: #c8ecdf;
    --blue: #2c5282;
    --blue-btn: #2563eb;
    --blue-light: #ebf4ff;
    --text: #2d3748;
    --text-soft: #4a5568;
    --text-muted: #6b7280;
    --accent: #b58b82;
    --green-wa: #25d366;
    --radius: 14px;
    --shadow: 0 8px 24px -4px rgba(44, 82, 130, 0.10);
    --shadow-hover: 0 20px 40px -8px rgba(44, 82, 130, 0.18);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Keyframes ── */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 10px rgba(37,211,102,.3); }
    50%       { box-shadow: 0 4px 24px rgba(37,211,102,.65), 0 0 0 8px rgba(37,211,102,.08); }
}
@keyframes badgePop {
    0%   { transform: scale(0.7) rotate(-6deg); opacity: 0; }
    70%  { transform: scale(1.08) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

/* ── Header ── */
.header {
    text-align: center;
    padding: 5rem 2rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Sutil patrón de puntos en el fondo del header */
.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, #c8ecdf 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    opacity: .45;
    pointer-events: none;
}

.header h1 {
    font-family: "Rampart One", sans-serif;
    font-size: 4.5rem;
    font-weight: 400;
    color: var(--blue);
    margin-bottom: 0.75rem;
    text-shadow: 3px 3px 0px rgba(0,0,0,.08);
    position: relative;
    animation: fadeInDown .7s cubic-bezier(.22,1,.36,1) both;
}

.header p {
    font-size: 1.15rem;
    color: var(--text-soft);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: fadeInDown .7s .12s cubic-bezier(.22,1,.36,1) both;
}

/* Chip de ubicación */
.header-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1rem;
    background: white;
    border: 1.5px solid var(--card-border);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--blue);
    position: relative;
    animation: fadeIn .6s .3s both;
}
.header-location svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ── Catálogo ── */
.catalog {
    display: grid;
    /* Cambio clave: forzamos exactamente 2 columnas del mismo ancho */
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem;
    padding: 1rem 2rem 3rem;
    /* Reducimos el ancho máximo para que en monitores grandes no queden tarjetas gigantes */
    max-width: 1000px; 
    margin: 0 auto;
}

/* Animación escalonada de tarjetas */
.card { animation: fadeInUp .6s both; }
.card:nth-child(1) { animation-delay: .10s; }
.card:nth-child(2) { animation-delay: .22s; }
.card:nth-child(3) { animation-delay: .34s; }
.card:nth-child(4) { animation-delay: .46s; } /* Agregué la demora para tu cuarta tarjeta */

/* ── Tarjetas ── */
.card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Brillo sutil al hover */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
    border-radius: var(--radius);
}
.card:hover::after { opacity: 1; }

.card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: #a8ddc8;
}

.card h2 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.card p {
    color: var(--text-soft);
    font-size: .93rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: .88rem;
    color: var(--blue);
    margin-top: auto;
    transition: gap .2s;
}
.btn::after {
    content: '→';
    transition: transform .2s;
}
.card:hover .btn::after { transform: translateX(4px); }

/* ── Imágenes ── */
.imagen-centro {
    width: 100%;
    height: 210px;
    object-fit: contain;
    background-color: transparent;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    transition: transform .3s ease;
}
.card:hover .imagen-centro { transform: scale(1.04); }

.card-img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    border-bottom: 1px solid var(--card-border);
}

/* ── Sección Info Importante ── */
.important-info {
    max-width: 800px;
    margin: 0 auto 4.5rem;
    padding: 2rem 2.5rem;
    background: white;
    border-radius: var(--radius);
    border: 2px solid #e2e8f0;
    animation: fadeInUp .6s .45s both;
    box-shadow: var(--shadow);
}

.important-info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    color: #1e3a5f;
}

.important-info ul { list-style: none; }

.important-info li {
    margin-bottom: 0.9rem;
    color: var(--text-soft);
    position: relative;
    padding-left: 1.5rem;
    font-size: .94rem;
    line-height: 1.65;
}
.important-info li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* ── WhatsApp flotante ── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: var(--green-wa);
    color: white;
    font-weight: 700;
    font-size: .97rem;
    padding: 13px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 1000;
    animation: pulseGlow 2.6s ease-in-out infinite;
    transition: transform .2s ease;
}
.whatsapp-float svg { width: 22px; height: 22px; flex-shrink: 0; }
.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    animation: none;
    box-shadow: 0 8px 28px rgba(37,211,102,.5);
}

/* ══════════════════════════════════════════
   PÁGINAS DE DETALLE
   ══════════════════════════════════════════ */

.detail-wrapper {
    max-width: 820px;
    margin: 3.5rem auto 5rem;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius);
    border: 2px solid #e2e8f0;
    box-shadow: var(--shadow);
    animation: fadeInUp .55s cubic-bezier(.22,1,.36,1) both;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: color .18s, gap .18s;
    margin-bottom: 1.75rem;
}
.detail-back:hover { color: var(--blue); gap: 8px; }

.detail-wrapper h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: .75rem;
    line-height: 1.25;
}

.detail-wrapper > p {
    color: var(--text-soft);
    margin-bottom: 2rem;
    font-size: .97rem;
    line-height: 1.7;
}

.detail-wrapper h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Lista de servicios incluidos */
.service-list {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-soft);
    font-size: .94rem;
    line-height: 1.6;
    padding: .75rem 1rem;
    background: var(--card-bg);
    border: 1.5px solid var(--card-border);
    border-radius: 8px;
    transition: border-color .2s, background .2s;
}
.service-list li:hover {
    border-color: #a8ddc8;
    background: #dff5ec;
}
.service-list li::before {
    content: '✓';
    color: #38a169;
    font-weight: 700;
    font-size: .9rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Badge de precio */
.price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: var(--blue-light);
    border: 2px solid #bee3f8;
    border-radius: 10px;
    padding: .7rem 1.3rem;
    margin-bottom: 2rem;
    animation: badgePop .5s .3s cubic-bezier(.22,1,.36,1) both;
}
.price-badge .price-amount {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--blue);
}
.price-badge .price-note {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Botón CTA */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background-color: var(--blue-btn);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: .97rem;
    transition: background .2s, transform .18s, box-shadow .18s;
}
.cta-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,.35);
}
.cta-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Responsive ── */
/* Aumentado a 768px para que las tablets y celulares muestren 1 sola columna ordenada */
@media (max-width: 768px) {
    .header h1 { font-size: 2.6rem; }
    .catalog { grid-template-columns: 1fr; padding: 1rem; }
    .important-info { margin: 1rem 1rem 3rem; padding: 1.5rem; }
    .detail-wrapper { margin: 1.5rem 1rem 4rem; padding: 1.5rem; }
    .detail-wrapper h1 { font-size: 1.5rem; }
    .price-badge .price-amount { font-size: 1.35rem; }
    .whatsapp-float { bottom: 20px; right: 16px; padding: 11px 16px; font-size: .9rem; }
}
/* ── Efecto Splash de Minecraft ── */
.minecraft-splash {
    position: absolute;
    right: -180px; /* Lo empuja un poco a la derecha del subtítulo */
    bottom: -20px; /* Lo tira hacia abajo, debajo del texto principal */
    font-family: 'Press Start 2P', cursive;
    color: #000000; /* Texto en color negro */
    font-size: 0.70rem;
    text-shadow: 2px 2px 0px #cbd5e1; /* Sombra gris claro para el efecto 3D */
    transform: rotate(-12deg); /* Un poco menos inclinado para que encaje mejor abajo */
    transform-origin: center;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    animation: splashPulse 0.45s alternate infinite ease-in-out; 
}

@keyframes splashPulse {
    from { transform: rotate(-12deg) scale(1); }
    to   { transform: rotate(-12deg) scale(1.12); }
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .minecraft-splash {
        right: 10px;
        bottom: -20px;
        font-size: 0.55rem;
    }
}