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

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #edf7f3;
    --text: #172033;
    --muted: #5d6879;
    --line: #dce6ef;
    --brand: #1f5f9e;
    --brand-dark: #153e75;
    --brand-soft: #e8f1ff;
    --whatsapp: #25d366;
    --success: #1f9d55;
    --warning: #fff7e6;
    --radius: 18px;
    --shadow: 0 18px 45px rgba(24, 39, 75, .08);
    --shadow-soft: 0 10px 26px rgba(24, 39, 75, .06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

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

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

/* Accesibilidad */
.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: var(--brand);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    z-index: 9999;
}

.skip-link:focus {
    left: 12px;
}

:focus-visible {
    outline: 4px solid rgba(37, 211, 102, .45);
    outline-offset: 3px;
}

/* Header / Hero */
.site-header {
    background:
        radial-gradient(circle at 15% 10%, rgba(37, 211, 102, .13), transparent 28rem),
        radial-gradient(circle at 85% 0%, rgba(31, 95, 158, .11), transparent 26rem),
        linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
}

/* Logo FreddyFix */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--brand);
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -0.04em;
    box-shadow: 0 8px 20px rgba(31, 95, 158, .22);
    flex-shrink: 0;
}

.logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    gap: 3px;
}

.logo-text span:first-child,
.logo-text span:last-child {
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 1.06rem;
    letter-spacing: -0.03em;
}

.logo-text span:last-child {
    color: #244d7c;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
    font-size: .95rem;
}

.nav-links a {
    text-decoration: none;
}

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

.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 42px;
    align-items: center;
    padding: 46px 0 58px;
}

.hero-content h1 {
    max-width: 860px;
    font-size: clamp(2.15rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
    color: var(--brand-dark);
    margin-bottom: 18px;
}

.hero-content p {
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 720px;
    margin-bottom: 24px;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.btn-primary,
.btn-secondary,
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary,
.cta-btn {
    background: var(--whatsapp);
    color: white;
    border: 0;
    box-shadow: 0 14px 26px rgba(37, 211, 102, .25);
}

.btn-primary:hover,
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 211, 102, .34);
}

.btn-secondary {
    background: white;
    color: var(--brand-dark);
    border-color: var(--line);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.trust-list li {
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.hero-card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    border-radius: 20px;
    background: var(--surface-soft);
    padding: 18px;
}

.hero-card .mini-title {
    margin-top: 16px;
    font-weight: 800;
    color: var(--brand-dark);
}

.hero-card .mini-text {
    color: var(--muted);
    font-size: .98rem;
}

/* Secciones generales */
.section {
    padding: 56px 0;
}

.section-title {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    color: var(--brand-dark);
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.section-lead {
    color: var(--muted);
    max-width: 760px;
    margin-bottom: 26px;
    font-size: 1.04rem;
}

/* Catálogo de servicios */
.catalog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card,
.step,
.info-box,
details {
    backdrop-filter: blur(8px);
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(31, 95, 158, .35);
    box-shadow: var(--shadow);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: var(--surface-soft);
    border-radius: 14px;
    padding: 10px;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.08rem;
    color: var(--brand-dark);
    line-height: 1.25;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: .94rem;
    flex: 1;
    margin-bottom: 14px;
}

.card .price {
    font-weight: 800;
    color: var(--brand);
    margin-bottom: 12px;
}

.card .card-link {
    font-weight: 800;
    color: var(--brand-dark);
}

/* Pasos */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.step span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 900;
    margin-bottom: 12px;
}

.step h3 {
    color: var(--brand-dark);
    margin-bottom: 6px;
    font-size: 1.02rem;
}

.step p {
    color: var(--muted);
    font-size: .95rem;
}

/* Información */
.info-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.info-box ul {
    list-style: none;
    display: grid;
    gap: 14px;
}

.info-box li {
    padding-left: 30px;
    position: relative;
    color: var(--muted);
}

.info-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success);
    font-weight: 900;
}

/* Preguntas frecuentes */
.faq {
    display: grid;
    gap: 12px;
}

details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: var(--shadow-soft);
}

summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--brand-dark);
}

details p {
    color: var(--muted);
    margin-top: 10px;
}

/* CTA final */
.final-cta {
    text-align: center;
    background: var(--brand-dark);
    color: white;
    padding: 44px 20px;
    border-radius: 28px;
    margin-bottom: 78px;
}

.final-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 8px;
}

.final-cta p {
    color: rgba(255, 255, 255, .82);
    margin-bottom: 18px;
}

/* Páginas de detalle */
.detail-wrapper {
    width: min(860px, calc(100% - 32px));
    margin: 36px auto 90px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(22px, 4vw, 38px);
    box-shadow: var(--shadow);
}

.detail-back {
    display: inline-flex;
    text-decoration: none;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 24px;
}

.detail-back:hover {
    color: var(--brand);
}

.detail-wrapper h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--brand-dark);
    margin-bottom: 14px;
}

.detail-intro {
    color: var(--muted);
    font-size: 1.07rem;
    margin-bottom: 24px;
}

.detail-image {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: var(--surface-soft);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 26px;
}

.detail-wrapper h2 {
    font-size: 1.18rem;
    color: var(--brand-dark);
    margin: 24px 0 12px;
}

.service-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin-bottom: 22px;
}

.service-list li {
    background: var(--surface-soft);
    border: 1px solid #cde9de;
    border-radius: 14px;
    padding: 13px 14px 13px 42px;
    position: relative;
    color: var(--muted);
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    top: 13px;
    color: var(--success);
    font-weight: 900;
}

.price-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    background: var(--brand-soft);
    border: 1px solid #cfe1ff;
    color: var(--brand-dark);
    border-radius: 16px;
    padding: 14px 18px;
    margin: 8px 0 22px;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 900;
}

.price-note {
    color: var(--muted);
    font-weight: 700;
}

.notice {
    background: var(--warning);
    border: 1px solid #f5d59f;
    border-radius: 16px;
    padding: 14px 16px;
    color: #725019;
    margin: 18px 0;
    font-weight: 600;
}

/* Trabajos realizados + reseñas desde Google Sheets */
.trabajos-resenas-section {
    padding: 56px 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 211, 102, .08), transparent 26rem),
        #f8fbff;
}

.trabajos-resenas-section .section-header {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.section-header h2 {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    color: var(--brand-dark);
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--muted);
    max-width: 760px;
    font-size: 1.04rem;
}

.trabajos-resenas-grid {
    width: min(1120px, calc(100% - 32px));
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trabajo-resena-card {
    overflow: hidden;
    border: 1px solid #d9e6f5;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(12, 45, 90, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.trabajo-resena-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 95, 158, .28);
    box-shadow: var(--shadow);
}

.trabajo-imagen-wrap {
    width: 100%;
    height: 230px;
    background: #eef8f4;
    border-bottom: 1px solid #d9e6f5;
    overflow: hidden;
}

.trabajo-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trabajo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: #52627a;
    font-weight: 700;
    border: 2px dashed #c9def5;
    background: #f3fbf7;
}

.trabajo-contenido {
    padding: 22px;
}

.trabajo-contenido h3 {
    margin: 0 0 12px;
    color: #0b3b75;
    font-size: 21px;
    line-height: 1.25;
}

.trabajo-descripcion {
    margin: 0 0 18px;
    color: #52627a;
    line-height: 1.6;
    font-size: 15.5px;
}

.resena-box {
    padding: 16px;
    border-radius: 18px;
    background: #f5f9ff;
    border: 1px solid #dceaff;
}

.resena-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.resena-header strong {
    color: #0b3b75;
    font-size: 15px;
}

.resena-estrellas {
    color: #f5b301;
    letter-spacing: 1px;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 900;
}

.resena-texto {
    margin: 0;
    color: #334155;
    line-height: 1.5;
    font-size: 15px;
}

.sin-resenas {
    grid-column: 1 / -1;
    text-align: center;
    color: #52627a;
    font-size: 17px;
}

/* Ocultar elementos antiguos que ya no usas */
.whatsapp-float,
.floating-whatsapp,
.btn-whatsapp-float,
.review-cta,
.comentario-cta,
.cta-comentarios {
    display: none !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px 15px;
    background: #0f172a;
    color: white;
    font-size: 14px;
}

.footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .catalog,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .trabajos-resenas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo-mark {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .logo-text span:first-child,
    .logo-text span:last-child {
        font-size: 1rem;
    }

    .hero {
        padding: 34px 0 44px;
    }

    .hero-card img {
        height: 240px;
    }

    .catalog,
    .steps,
    .trabajos-resenas-grid {
        grid-template-columns: 1fr;
    }

    .trabajo-imagen-wrap {
        height: 220px;
    }

    .resena-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-image {
        height: 220px;
    }
}
/* Botón modo oscuro */
.theme-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--brand-dark);
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-soft);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
}

/* Modo oscuro */
body.dark-mode {
    --bg: #07111f;
    --surface: #0f1b2d;
    --surface-soft: #12263d;
    --text: #eef6ff;
    --muted: #b7c6d9;
    --line: #24364f;
    --brand: #60a5fa;
    --brand-dark: #dbeafe;
    --brand-soft: #10233d;
    --whatsapp: #25d366;
    --success: #4ade80;
    --warning: #33260d;
    --shadow: 0 18px 45px rgba(0, 0, 0, .32);
    --shadow-soft: 0 10px 26px rgba(0, 0, 0, .24);
}

body.dark-mode .site-header {
    background:
        radial-gradient(circle at 15% 10%, rgba(37, 211, 102, .10), transparent 28rem),
        radial-gradient(circle at 85% 0%, rgba(96, 165, 250, .12), transparent 26rem),
        linear-gradient(180deg, #081426 0%, #07111f 100%);
    border-bottom-color: var(--line);
}

body.dark-mode .btn-secondary {
    background: #0f1b2d;
    color: #dbeafe;
    border-color: var(--line);
}

body.dark-mode .trust-list li,
body.dark-mode .card,
body.dark-mode .step,
body.dark-mode .info-box,
body.dark-mode details,
body.dark-mode .hero-card,
body.dark-mode .trabajo-resena-card {
    background: var(--surface);
    border-color: var(--line);
}

body.dark-mode .card img,
body.dark-mode .hero-card img,
body.dark-mode .detail-image,
body.dark-mode .trabajo-imagen-wrap,
body.dark-mode .trabajo-placeholder {
    background: var(--surface-soft);
}

body.dark-mode .trabajos-resenas-section {
    background:
        radial-gradient(circle at 12% 0%, rgba(37, 211, 102, .08), transparent 26rem),
        #07111f;
}

body.dark-mode .resena-box {
    background: #10233d;
    border-color: #25466d;
}

body.dark-mode .resena-texto {
    color: #dbeafe;
}

body.dark-mode .final-cta {
    background: #0b2545;
}

body.dark-mode .footer {
    background: #020617;
    color: #e5eefb;
}

body.dark-mode .theme-toggle {
    background: #0f1b2d;
    color: #facc15;
    border-color: var(--line);
}

body.dark-mode .logo-mark {
    background: #2563eb;
}

body.dark-mode .logo-text span:first-child,
body.dark-mode .logo-text span:last-child,
body.dark-mode .logo,
body.dark-mode .section-title,
body.dark-mode .card h3,
body.dark-mode .step h3,
body.dark-mode summary,
body.dark-mode .trabajo-contenido h3,
body.dark-mode .resena-header strong {
    color: #dbeafe;
}

body.dark-mode .section-lead,
body.dark-mode .card p,
body.dark-mode .step p,
body.dark-mode .info-box li,
body.dark-mode details p,
body.dark-mode .trabajo-descripcion,
body.dark-mode .sin-resenas {
    color: #b7c6d9;
}
