/**
 * front-page-v2.css — estilos para los bloques nuevos de la home.
 *
 * Filosofía:
 *   - Solo afecta a clases con prefijo .dc- (DonContacto) — no toca el resto del tema.
 *   - Mobile-first.
 *   - Variables CSS para que cambiar el color de marca sea trivial.
 *   - Sin !important salvo casos justificados.
 */

:root {
    --dc-color-brand: #007BA2;
    --dc-color-brand-dark: #003F53;
    --dc-color-accent: #EB7324;
    --dc-color-accent-dark: #c85e09;
    --dc-color-text: #2a2a2a;
    --dc-color-muted: #6b6b6b;
    --dc-color-bg: #ffffff;
    --dc-color-bg-alt: #f7f9fb;
    --dc-color-border: #e3e8ec;
    --dc-color-success: #0c8a4d;
    --dc-color-star: #f5a623;
    --dc-radius: 8px;
    --dc-shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
    --dc-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --dc-container: 1200px;
}

/* ============================================================
   HERO
   ============================================================ */

.dc-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dc-color-brand) 0%, var(--dc-color-brand-dark) 100%);
    color: #fff;
    padding: 48px 16px 56px;
}

.dc-hero__inner {
    max-width: var(--dc-container);
    margin: 0 auto;
    text-align: center;
}

.dc-hero__title {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.15;
    margin: 0 0 16px;
    font-weight: 700;
    color: #fff;
}

.dc-hero__subtitle {
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,0.92);
}

.dc-hero__form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 24px;
    background: #fff;
    border-radius: var(--dc-radius);
    padding: 16px;
    box-shadow: var(--dc-shadow-md);
    text-align: left;
}

@media (min-width: 768px) {
    .dc-hero__form {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}

.dc-hero__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dc-color-text);
    margin-bottom: 6px;
}

.dc-hero__field select,
.dc-hero__field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--dc-color-border);
    border-radius: var(--dc-radius);
    font-size: 16px;
    color: var(--dc-color-text);
    background: #fff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.dc-hero__field select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%23666' d='M6 9 1 4h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.dc-hero__field select:focus,
.dc-hero__field input:focus {
    outline: 2px solid var(--dc-color-brand);
    outline-offset: 0;
    border-color: var(--dc-color-brand);
}

.dc-hero__submit {
    height: 48px;
    padding: 0 24px;
    background: var(--dc-color-accent);
    color: #fff;
    border: none;
    border-radius: var(--dc-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.dc-hero__submit:hover,
.dc-hero__submit:focus {
    background: var(--dc-color-accent-dark);
    outline: none;
}

.dc-hero__signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.dc-hero__signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.dc-howto {
    background: var(--dc-color-bg-alt);
    padding: 64px 16px;
}

.dc-howto__inner {
    max-width: var(--dc-container);
    margin: 0 auto;
    text-align: center;
}

.dc-howto__title {
    font-size: clamp(24px, 3.5vw, 32px);
    margin: 0 0 12px;
    color: var(--dc-color-text);
}

.dc-howto__lead {
    font-size: 17px;
    color: var(--dc-color-muted);
    max-width: 680px;
    margin: 0 auto 40px;
}

.dc-howto__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    list-style: none; /* quita "1." "2." "3." automáticos del <ol>; los números ya van en cada <h3> */
    margin: 0;
    padding: 0;
    text-align: left;
}

@media (min-width: 768px) {
    .dc-howto__steps { grid-template-columns: repeat(3, 1fr); }
}

.dc-howto__step {
    background: #fff;
    border-radius: var(--dc-radius);
    padding: 24px;
    box-shadow: var(--dc-shadow-sm);
    border-top: 4px solid var(--dc-color-brand);
}

.dc-howto__icon {
    color: var(--dc-color-brand);
    margin-bottom: 16px;
}

.dc-howto__step-title {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--dc-color-text);
}

.dc-howto__step-text {
    margin: 0;
    color: var(--dc-color-muted);
    line-height: 1.55;
    font-size: 15px;
}

/* ============================================================
   TRUST METRICS
   ============================================================ */

.dc-trust {
    background: var(--dc-color-brand);
    color: #fff;
    padding: 32px 16px;
}

.dc-trust__inner {
    max-width: var(--dc-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: center;
}

@media (min-width: 768px) {
    .dc-trust__inner { grid-template-columns: repeat(4, 1fr); }
}

.dc-trust__number {
    display: block;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.1;
}

.dc-trust__label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
}

/* ============================================================
   CATEGORIES
   ============================================================ */

.dc-categories {
    padding: 64px 16px;
}

.dc-categories__inner {
    max-width: var(--dc-container);
    margin: 0 auto;
}

.dc-categories__title {
    font-size: clamp(24px, 3.5vw, 32px);
    text-align: center;
    margin: 0 0 12px;
}

.dc-categories__lead {
    text-align: center;
    color: var(--dc-color-muted);
    max-width: 680px;
    margin: 0 auto 40px;
    font-size: 17px;
}

.dc-categories__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px)  { .dc-categories__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dc-categories__grid { grid-template-columns: repeat(3, 1fr); } }

.dc-category {
    background: #fff;
    border: 1px solid var(--dc-color-border);
    border-radius: var(--dc-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dc-category:hover { transform: translateY(-2px); box-shadow: var(--dc-shadow-md); }

.dc-category__image {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--dc-color-bg-alt);
}

.dc-category__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dc-category__title {
    font-size: 19px;
    margin: 16px 20px 12px;
    color: var(--dc-color-text);
}

.dc-category__links {
    list-style: none;
    margin: 0;
    padding: 0 20px 20px;
}

.dc-category__links li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.dc-category__icon {
    color: var(--dc-color-brand);
    flex-shrink: 0;
    display: inline-flex;
}

.dc-category__links a {
    color: var(--dc-color-brand);
    text-decoration: none;
    font-size: 15px;
}

.dc-category__links a:hover { text-decoration: underline; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.dc-testimonials {
    background: var(--dc-color-bg-alt);
    padding: 64px 16px;
}

.dc-testimonials__inner {
    max-width: var(--dc-container);
    margin: 0 auto;
}

.dc-testimonials__title {
    font-size: clamp(24px, 3.5vw, 32px);
    text-align: center;
    margin: 0 0 40px;
}

.dc-testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) { .dc-testimonials__grid { grid-template-columns: repeat(3, 1fr); } }

.dc-testimonial {
    background: #fff;
    border-radius: var(--dc-radius);
    padding: 24px;
    box-shadow: var(--dc-shadow-sm);
}

.dc-testimonial__stars {
    color: var(--dc-color-star);
    margin-bottom: 12px;
    display: flex;
    gap: 2px;
}

.dc-testimonial__text {
    margin: 0 0 16px;
    font-style: italic;
    color: var(--dc-color-text);
    line-height: 1.55;
    font-size: 15px;
}

.dc-testimonial__meta {
    /* Reset explícito por si una regla global de `footer{}` o `.widget{}` le mete background */
    background: transparent;
    background-color: transparent;
    border-top: 1px solid var(--dc-color-border);
    padding: 12px 0 0;
    margin: 0;
    font-size: 14px;
    color: var(--dc-color-muted);
}

.dc-testimonial__name {
    color: var(--dc-color-text);
    display: block;
    margin-bottom: 2px;
}

.dc-testimonial__location {
    color: var(--dc-color-muted);
    margin-right: 8px;
}

.dc-testimonial__service {
    color: var(--dc-color-muted);
}

.dc-testimonial__service::before { content: "·"; margin-right: 8px; color: var(--dc-color-border); }

/* ============================================================
   FAQ
   ============================================================ */

.dc-faq {
    padding: 64px 16px;
}

.dc-faq__inner {
    max-width: 800px;
    margin: 0 auto;
}

.dc-faq__title {
    font-size: clamp(24px, 3.5vw, 32px);
    text-align: center;
    margin: 0 0 32px;
}

.dc-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dc-faq__item {
    background: #fff;
    border: 1px solid var(--dc-color-border);
    border-radius: var(--dc-radius);
    overflow: hidden;
}

.dc-faq__question {
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 16px;
    color: var(--dc-color-text);
    position: relative;
    padding-right: 48px;
}

.dc-faq__question::-webkit-details-marker { display: none; }

.dc-faq__question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: var(--dc-color-brand);
    transition: transform 0.2s;
    line-height: 1;
}

.dc-faq__item[open] .dc-faq__question::after {
    content: "−";
}

.dc-faq__answer {
    padding: 0 20px 20px;
    color: var(--dc-color-muted);
    line-height: 1.6;
}

.dc-faq__answer p { margin: 0 0 10px; }
.dc-faq__answer p:last-child { margin-bottom: 0; }

/* ============================================================
   Reset suave para no chocar con #title_front_page (h1 viejo)
   ============================================================ */

.container_home_v2 #title_front_page {
    /* Si por error queda algún <h1> generado por el theme antiguo, ocultarlo */
    display: none;
}
