/*
    styles.css
    ----------------
    Central stylesheet for the Cuentia static site.
    - Provides brand variables and layout for header, navigation, store badges,
        carousel and article (privacy) pages.
    - Keep page-specific classes here to avoid inline styles and duplication.
    - Author: generated/organized by Copilot assistant (developer: CG Ingeniería)
    - Notes:
        * The privacy page uses the `.article-container` class so it picks up
            the article-specific typographic/layout styles defined below.
        * To change the default visibility of the App Store badge, toggle
            `hideAppleBadge` in `js/main.js`.
*/

:root {
    /* Brand colors based on logo: dark navy + teal/green  */
    --brand-dark: #071827; /* deep navy */
    --brand-green: #00bf88; /* bright teal/green */
    --brand-green-2: #069e72;
    --bg-dark: var(--brand-dark);
    --primary: var(--brand-green);
    --primary-2: var(--brand-green-2);
    --text-main: #0f1720;
    --text-muted: #6b7280;
    --bg-light: #fbfcfd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: var(--text-main); background-color: var(--bg-light); }

/* Navegación */
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; background: rgba(255,255,255,0.9); backdrop-filter: blur(6px); box-shadow: 0 4px 12px rgba(16,24,40,0.06); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.logo-img { width: 36px; height: 36px; display: inline-block; }
.brand { color: var(--bg-dark); font-weight: 800; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* Hero / Encabezado */
header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); color: #ffffff; text-align: center; padding: 5.25rem 1rem 4rem; }
header h1 { font-size: 3rem; margin-bottom: 1rem; font-weight: 800; letter-spacing: -0.025em; }
header p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; }
.btn { display: inline-block; background: #ffffff; color: var(--primary); padding: 0.8rem 2rem; text-decoration: none; border-radius: 50px; font-weight: 600; box-shadow: 0 6px 20px rgba(2,6,23,0.06); transition: all 0.18s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(2,6,23,0.08); background: #f8fffb; }
.store-buttons { display: flex; justify-content: center; gap: 12px; margin-top: 1rem; flex-wrap: wrap; }
.store-buttons.single { gap: 0; }
.store-buttons.single .store-btn { margin: 0; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #ffffff; color: var(--bg-dark); padding: 0.7rem 1rem; text-decoration: none; border-radius: 12px; font-weight: 700; box-shadow: 0 8px 22px rgba(2,6,23,0.06); transition: transform .12s ease; }
.store-btn svg { flex: 0 0 auto; }
.store-btn img { height: 40px; display: block; }
.store-btn:hover { transform: translateY(-3px); }
@media (max-width:560px){ .store-buttons{flex-direction:column;align-items:center;} }

/* Contenedor y Secciones */
.container { max-width: 1100px; margin: 3rem auto; padding: 0 1.5rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.25rem; color: var(--bg-dark); }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

/* Grilla de Características */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card { background: #ffffff; padding: 1.6rem; border-radius: 12px; box-shadow: 0 6px 20px rgba(2,6,23,0.04); border: 1px solid rgba(2,6,23,0.04); transition: transform 0.18s, box-shadow 0.18s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; display: inline-block; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--bg-dark); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
footer { text-align: center; padding: 2.5rem 1rem; background: var(--bg-dark); color: #94a3b8; font-size: 0.9rem; margin-top: 3rem; }
footer a { color: #ffffff; text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* Carousel */
.carousel-wrap { max-width: 900px; margin: 2rem auto; position: relative; }
.carousel { overflow: hidden; border-radius: 12px; }
.carousel-track { display: flex; transition: transform 0.35s ease; }
.carousel-slide { min-width: 100%; user-select: none; display: flex; align-items: center; justify-content: center; padding: 1rem 0; }
/* Images scale to fit without cropping */
.carousel-slide img { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.carousel-controls { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.carousel-btn { background: rgba(255,255,255,0.9); border: none; pointer-events: auto; margin: 0 0.5rem; padding: 0.5rem 0.6rem; border-radius: 8px; box-shadow: 0 6px 18px rgba(2,6,23,0.08); cursor: pointer; }
.carousel-dots { text-align: center; margin-top: 0.8rem; }
.carousel-dot { display: inline-block; width: 10px; height: 10px; margin: 0 6px; background: #e6e7ee; border-radius: 50%; cursor: pointer; }
.carousel-dot.active { background: var(--primary); }

/* Policy / article specific */
.article-container { max-width: 900px; margin: 3rem auto; background: #ffffff; padding: 2.5rem; border-radius: 12px; box-shadow: 0 8px 30px rgba(2,6,23,0.06); border: 1px solid #eef2ff; }
.article-container ul, .article-container ol { margin-left: 1.25rem; padding-left: 1.25rem; color: var(--text-main); list-style-position: outside; }
.article-container li { margin-bottom: 0.45rem; }
.back-link { display: inline-block; margin-bottom: 1.25rem; color: var(--primary); text-decoration: none; font-weight: 700; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 720px){
    header { padding: 4rem 1rem 3rem; }
    .carousel-slide img { max-height: 320px; }
}
