/* ===== LANDING PAGES - ACAPSI.CL ===== */

/* iOS tap fix: prevent double-fire on external links */
a[href^="tel:"], a[href^="mailto:"], a[href^="sms:"],
a[href*="wa.me"], button, [role="button"] {
    touch-action: manipulation;
}

/* Fonts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url(fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url(fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url(fonts/lora-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url(fonts/lora-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --azul: #2C3E50;
    --verde: #6B9080;
    --verde-claro: #8FB3A5;
    --crema: #F6F5F0;
    --ocre: #B88256;
    --ocre-hover: #A7744C;
    --blanco: #FFFFFF;
    --gris: #4A4A4A;
    --gris-claro: #E5E3DE;
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 8px;
    --transition: 0.3s ease;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--gris); background: var(--crema); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--verde); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
    a { transition: color var(--transition); }
    a:hover { color: var(--ocre); }
}
img { max-width: 100%; height: auto; display: block; }

/* Header */
.lp-header { background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--gris-claro); }
.lp-nav { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.lp-brand { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--azul); text-decoration: none; padding: 0.5rem 0; }
.lp-back { color: var(--verde); font-size: 0.9rem; font-weight: 500; padding: 0.75rem 0; }

/* Hero */
.lp-hero { background: var(--azul); background: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 30%), radial-gradient(circle at 85% 10%, rgba(184,130,86,0.10), transparent 28%), linear-gradient(180deg, #314556 0%, #2C3E50 100%); color: var(--blanco); text-align: center; padding: 4rem 1.5rem 3.5rem; }
.lp-hero h1 { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; margin-bottom: 1rem; }
.lp-subtitle { font-size: 1.25rem; opacity: 0.85; max-width: 600px; margin: 0 auto 2rem; line-height: 1.6; }
.lp-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 1rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 50px; color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 500; margin-bottom: 2rem; }
.lp-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; border-radius: var(--radius); font-family: var(--font-sans); font-size: 1rem; font-weight: 500; text-decoration: none; transition: all var(--transition); cursor: pointer; border: none; }
.btn svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-whatsapp svg { fill: currentColor; stroke: none; }
.btn-primary { background: var(--ocre); color: var(--blanco); }
.btn-primary:hover { background: var(--ocre-hover); color: var(--blanco); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(192,139,92,0.4); }
.btn-whatsapp { background: #25D366; color: var(--blanco); }
.btn-whatsapp:hover { background: #1DA851; color: var(--blanco); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(37,211,102,0.4); }

/* Content */
.lp-content { max-width: 750px; margin: 0 auto; padding: 4rem 1.5rem; }
.lp-content h2 { font-family: var(--font-serif); color: var(--azul); font-size: 1.75rem; font-weight: 500; margin: 2.5rem 0 1rem; line-height: 1.3; }
.lp-content h2:first-child { margin-top: 0; }
.lp-content p { margin-bottom: 1.25rem; font-size: 1.125rem; line-height: 1.75; }
.lp-content ul { margin: 0 0 1.25rem 1.5rem; font-size: 1.125rem; line-height: 1.75; }
.lp-content li { margin-bottom: 0.5rem; }
.lp-content a { text-decoration: underline; text-decoration-color: rgba(107, 144, 128, 0.5); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Enfoque block */
.lp-enfoque { background: var(--blanco); padding: 3rem 1.5rem; }
.lp-enfoque-inner { max-width: 750px; margin: 0 auto; background: var(--verde); color: var(--blanco); border-radius: var(--radius); padding: 2rem 2.5rem; text-align: center; }
.lp-enfoque h3 { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; margin-bottom: 0.75rem; }
.lp-enfoque p { font-size: 1rem; line-height: 1.8; opacity: 0.95; }
.lp-enfoque-inner a { color: var(--blanco); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp-enfoque-inner a:hover { color: rgba(255,255,255,0.8); }

/* CTA */
.lp-cta { background: var(--azul); color: var(--blanco); text-align: center; padding: 4rem 1.5rem; }
.lp-cta h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 600; margin-bottom: 0.75rem; line-height: 1.2; }
.lp-cta > p { opacity: 0.85; margin-bottom: 2rem; font-size: 1.125rem; }
.lp-microcopy { margin-top: 1.25rem; font-size: 0.9rem; opacity: 0.55; font-style: italic; letter-spacing: 0.3px; }

/* Contact page extras */
.lp-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 900px; margin: 0 auto; }
.lp-contact-card { background: var(--blanco); border-radius: var(--radius); padding: 2rem; }
.lp-contact-card h3 { font-family: var(--font-serif); color: var(--azul); font-size: 1.375rem; font-weight: 500; margin-bottom: 1rem; }
.lp-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.95rem; }
.lp-contact-item svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--verde); fill: none; stroke-width: 2; margin-top: 2px; }
.lp-contact-item strong { color: var(--azul); }
.lp-map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--gris-claro); }
.lp-map iframe { width: 100%; height: 100%; border: 0; }

/* Services overview */
.lp-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.lp-service-tag { background: var(--blanco); border-radius: var(--radius); padding: 1rem 1.25rem; text-align: center; font-weight: 500; color: var(--azul); font-size: 0.95rem; transition: transform var(--transition); }
.lp-service-tag:hover { transform: translateY(-2px); }

/* Footer */
.lp-footer { background: #1a2a38; color: rgba(255,255,255,0.6); text-align: center; padding: 2rem 1.5rem; font-size: 0.9375rem; }
.lp-footer a { color: rgba(255,255,255,0.8); text-decoration: none; padding: 0.5rem 0; display: inline-block; }
.lp-footer p { margin-bottom: 0.5rem; }

/* FAB mobile */
.fab-buttons { display: flex; position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; flex-direction: column; gap: 0.75rem; opacity: 1; transform: translateY(0); transition: opacity 1s ease, transform 1s ease; }
.fab-buttons.fab-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
.fab-btn { width: 56px; height: 56px; border-radius: 50%; color: var(--blanco); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); }
.fab-btn:hover { transform: scale(1.1); color: var(--blanco); }
.fab-btn-whatsapp { background: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
.fab-btn-call { background: var(--ocre); box-shadow: 0 4px 20px rgba(192,139,92,0.5); }
.fab-btn svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }
.fab-btn-whatsapp svg, .fab-btn-call svg { fill: currentColor; stroke: none; }

/* FAQ */
.lp-faq { max-width: 750px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.lp-faq h2 { font-family: var(--font-serif); color: var(--azul); font-size: 1.75rem; font-weight: 500; margin-bottom: 1.5rem; }
.lp-faq details { background: var(--blanco); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.lp-faq summary { padding: 1.125rem 1.5rem; font-size: 1.0625rem; font-weight: 500; color: var(--azul); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--verde); flex-shrink: 0; margin-left: 1rem; transition: transform var(--transition); }
.lp-faq details[open] summary::after { content: '−'; }
.lp-faq details p { padding: 0 1.5rem 1.25rem; font-size: 1rem; line-height: 1.75; color: var(--gris); }

/* Responsive */
@media (max-width: 768px) {
    .lp-hero { padding: 3rem 1.25rem 2.5rem; }
    .lp-content { padding: 3rem 1.25rem; }
    .lp-enfoque { padding: 2rem 1.25rem; }
    .lp-cta { padding: 3rem 1.25rem; }
    .lp-footer { padding-bottom: 5rem; }
    .lp-contact-grid { grid-template-columns: 1fr; }
    .lp-map { aspect-ratio: 16/9; }
    .lp-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .lp-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
    .lp-services { grid-template-columns: 1fr; }
}

/* Focus states */
a:focus-visible, button:focus-visible { outline: 3px solid var(--ocre); outline-offset: 2px; }
