/* ===========================================================
   TallerPro — Demo Premium FACOMERCAI · Taller Mecánico / Autos
   Self-contained. Mobile-first. WCAG AA.
   Paleta navy + dorado (mismo lenguaje del molde demo-taxes).
   =========================================================== */

:root {
    --primary-navy: #0f2a47;
    --primary-navy-deep: #0a1f36;
    --accent-gold: #c9a24b;
    --accent-gold-soft: #e3c987;
    --accent-red: #c0392b;
    --accent-steel: #2f6f9f;
    --text-dark: #1c2733;
    --text-muted: #5a6b7b;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f4f7fa;
    --bg-mute: #eef3f8;
    --border-soft: #d8e2ec;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(15, 42, 71, 0.08);
    --shadow-md: 0 10px 30px rgba(15, 42, 71, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 42, 71, 0.18);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-dark {
    background: var(--primary-navy);
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.eyebrow {
    display: block;
    color: var(--accent-steel);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.eyebrow.gold {
    color: var(--accent-gold);
}

.section h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

/* ---------- Watermarks ---------- */
.demo-watermark {
    position: fixed;
    top: 14px;
    right: -52px;
    background: var(--accent-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 6px 60px;
    transform: rotate(45deg);
    z-index: 2000;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
}

.watermark {
    position: fixed;
    bottom: 8px;
    left: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(15, 42, 71, 0.18);
    z-index: 5;
    pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-align: center;
}

.btn:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-navy-deep);
}

.btn-primary:hover {
    background: var(--accent-gold-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: #08331b;
}

.btn-whatsapp:hover {
    background: #1ebe5b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--accent-gold);
}

.logo span {
    color: var(--accent-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-steel);
}

.lang-toggle {
    background: var(--primary-navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    min-width: 42px;
}

.lang-toggle:hover {
    background: var(--accent-steel);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-navy-deep) 0%, var(--primary-navy) 60%, var(--accent-steel) 130%);
    color: #fff;
    padding: 4.5rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(201, 162, 75, 0.18), transparent 45%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    display: inline-block;
    color: var(--accent-gold-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.1rem);
    margin-bottom: 1.25rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}

.badge i {
    color: var(--accent-gold);
}

/* ---------- Photo Slots (placeholders premium, listos para foto real) ---------- */
.photo-slot {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 14px, rgba(255, 255, 255, 0.08) 14px 28px),
        linear-gradient(135deg, rgba(47, 111, 159, 0.25), rgba(15, 42, 71, 0.35));
    border: 2px dashed rgba(201, 162, 75, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.photo-slot i {
    font-size: 2.6rem;
    color: var(--accent-gold-soft);
}

.photo-slot span {
    font-weight: 600;
    font-size: 0.95rem;
}

.photo-slot small {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.photo-slot-wide {
    aspect-ratio: 16 / 10;
    background:
        repeating-linear-gradient(45deg, rgba(15, 42, 71, 0.05) 0 14px, rgba(15, 42, 71, 0.09) 14px 28px),
        linear-gradient(135deg, rgba(47, 111, 159, 0.18), rgba(15, 42, 71, 0.12));
    color: var(--primary-navy);
}

.photo-slot-wide i {
    color: var(--accent-steel);
}

.photo-slot-dark {
    border-color: rgba(201, 162, 75, 0.7);
}

/* ---------- Photo slots con foto real (fotos 2026-08-08) ---------- */
.photo-slot.has-photo {
    border: none;
    background: none;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

.photo-slot.has-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.photo-credit {
    position: absolute;
    right: 8px;
    bottom: 6px;
    font: 600 10px/1.2 var(--font-sans);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    background: rgba(15, 42, 71, 0.55);
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.photo-credit:hover,
.photo-credit:focus-visible {
    color: #fff;
    background: rgba(15, 42, 71, 0.75);
}

/* ---------- Services Grid ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-steel));
    color: var(--accent-gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    color: var(--primary-navy);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.service-tag {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-steel);
    background: var(--bg-mute);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

/* ---------- Metrics row ---------- */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.metric-chip {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--accent-gold);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.metric-chip strong {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-navy);
    font-family: var(--font-serif);
}

.metric-chip em {
    font-size: 0.9rem;
    font-style: normal;
}

.metric-chip span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ---------- Kanban ---------- */
.kanban {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.kanban-col {
    background: var(--bg-mute);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.kanban-head {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-soft);
}

.kanban-card {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.kanban-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.kc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.kc-plate {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-navy);
    letter-spacing: 0.5px;
}

.kc-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    color: #fff;
}

.tag-blue {
    background: var(--accent-steel);
}

.tag-amber {
    background: var(--accent-gold);
    color: var(--primary-navy-deep);
}

.tag-red {
    background: var(--accent-red);
}

.tag-green {
    background: #1e8a57;
}

/* ---------- Case cards ---------- */
.case-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.case-eyebrow {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.4rem;
}

.case-eyebrow.red {
    color: var(--accent-red);
}

.case-eyebrow.gold {
    color: var(--accent-gold);
}

.case-card h3 {
    color: var(--primary-navy);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.case-quote {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: center;
}

.about-grid h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    margin-bottom: 1.25rem;
}

.about-grid p {
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    border-left: 3px solid var(--accent-gold);
    padding-left: 1rem;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold-soft);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- Plans ---------- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.plan-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.plan-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: var(--primary-navy-deep);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.plan-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.plan-features li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.plan-features i {
    color: #1e8a57;
    margin-top: 0.25rem;
}

.plan-btn {
    margin-top: auto;
    width: 100%;
}

.plans-wa {
    text-align: center;
    margin-top: 2.5rem;
}

.plans-wa p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ---------- FAQ ---------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-navy);
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---------- Action cards / Form ---------- */
.action-card {
    background: var(--bg-mute);
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
}

.action-card.gold {
    background: linear-gradient(135deg, var(--accent-gold-soft), var(--accent-gold));
}

.form-label {
    display: block;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.form-input:focus {
    outline: 2px solid var(--accent-steel);
    outline-offset: 1px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-navy-deep);
    color: #fff;
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--accent-gold-soft);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    transition: transform 0.15s ease;
}

.wa-float:hover {
    transform: scale(1.08);
}

.wa-float:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .hero .container,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn,
    .plan-btn {
        width: 100%;
    }

    .metric-chip strong {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
