/* Juicios de Divorcio — diseño moderno, responsivo */

:root {
    --jd-navy: #0d2156;
    --jd-blue: #245083;
    --jd-sky: #4782ae;
    --jd-light: #74b6d6;
    --jd-pale: #e8f4fc;
    --jd-accent: #1a6bb5;
    --jd-accent-hover: #155a99;
    --jd-text: #1c2434;
    --jd-muted: #5c6578;
    --jd-border: rgba(13, 33, 86, 0.12);
    --jd-radius: 16px;
    --jd-radius-sm: 12px;
    --jd-shadow: 0 4px 24px rgba(13, 33, 86, 0.08);
    --jd-shadow-lg: 0 20px 50px rgba(13, 33, 86, 0.12);
    --jd-gradient: linear-gradient(135deg, var(--jd-navy) 0%, var(--jd-blue) 45%, var(--jd-sky) 100%);
    --jd-gradient-soft: linear-gradient(180deg, #f5f9fc 0%, #ffffff 55%);
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--jd-text);
    background: #fff;
    line-height: 1.65;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6,
.section-title,
.display-4 {
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--jd-navy);
}

.lead {
    color: var(--jd-muted);
    font-weight: 400;
}

.text-primary {
    color: var(--jd-accent) !important;
}

/* Botones */
.btn-primary {
    background: var(--jd-accent);
    border-color: var(--jd-accent);
    font-weight: 600;
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--jd-accent-hover);
    border-color: var(--jd-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26, 107, 181, 0.35);
}

.btn-outline-primary {
    color: var(--jd-accent);
    border-color: var(--jd-accent);
    font-weight: 600;
    border-radius: 10px;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background: var(--jd-accent);
    border-color: var(--jd-accent);
}

.btn-link {
    font-weight: 600;
}

/* Navbar */
.site-header .navbar {
    background: var(--jd-gradient);
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    box-shadow: 0 4px 20px rgba(13, 33, 86, 0.15);
}

/* Logo sobre badge blanco para contraste con el gradiente del menú */
.site-header .navbar-brand.navbar-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(13, 33, 86, 0.18);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.site-header .navbar-brand.navbar-brand-badge:hover {
    box-shadow: 0 4px 20px rgba(13, 33, 86, 0.22);
    transform: translateY(-1px);
}

.site-header .navbar-brand img {
    height: 46px;
    width: auto;
    display: block;
}

.site-header .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-header .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
}

.site-header .btn-primary {
    background: #fff;
    color: var(--jd-navy);
    border-color: #fff;
}

.site-header .btn-primary:hover {
    background: var(--jd-pale);
    color: var(--jd-navy);
    border-color: var(--jd-pale);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Hero */
.hero-section {
    position: relative;
    padding-top: 3rem !important;
    padding-bottom: 3.5rem !important;
    background: var(--jd-gradient-soft);
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(71, 130, 174, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(36, 80, 131, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--jd-blue);
    background: rgba(36, 80, 131, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

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

.hero-content h1.display-4 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    line-height: 1.15;
}

.hero-content h2.text-primary {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.hero-visual {
    position: relative;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 8% 5% -5% 10%;
    background: var(--jd-gradient);
    border-radius: var(--jd-radius);
    opacity: 0.12;
    z-index: 0;
}

.hero-visual img {
    position: relative;
    z-index: 1;
    max-height: min(380px, 55vw);
    width: auto;
    max-width: 100%;
    border-radius: var(--jd-radius);
    box-shadow: var(--jd-shadow-lg);
    object-fit: cover;
}

.hero-buttons {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-buttons .btn {
    min-height: 48px;
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Secciones genéricas */
.about-section,
.services-section,
.process-section,
.faq-section,
.testimonials-section,
.contact-form-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.separator {
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--jd-gradient);
    margin-left: auto;
    margin-right: auto;
}

.about-section {
    background: #fff;
}

.about-section .about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-section .about-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--jd-border);
    font-size: 1.02rem;
}

.about-section .about-list li:last-child {
    border-bottom: 0;
}

.about-section .about-list .fa-check-circle {
    margin-top: 0.2rem;
    flex-shrink: 0;
    font-size: 1.15rem;
    color: var(--jd-accent) !important;
}

.about-section img.rounded {
    border-radius: var(--jd-radius) !important;
    box-shadow: var(--jd-shadow-lg);
    max-height: 380px;
    width: 100%;
    object-fit: cover;
}

/* Servicios */
.services-section {
    background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
}

.service-card {
    background: #fff;
    border-radius: var(--jd-radius);
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--jd-border);
    box-shadow: var(--jd-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--jd-shadow-lg);
    border-color: rgba(26, 107, 181, 0.25);
}

.service-card .card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jd-gradient);
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.25rem !important;
    box-shadow: 0 8px 20px rgba(36, 80, 131, 0.3);
}

.service-card .card-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem !important;
}

.service-card .card-text {
    color: var(--jd-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Proceso */
.process-section {
    background: #fff;
}

.process-item {
    padding: 1rem 0.5rem;
}

.process-icon {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--jd-pale) 0%, #fff 100%);
    border: 2px solid var(--jd-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--jd-accent);
    box-shadow: var(--jd-shadow);
}

.process-number {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--jd-accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(26, 107, 181, 0.4);
}

.process-item h4 {
    font-size: 1.05rem;
    margin-top: 1.25rem !important;
}

.process-item p {
    color: var(--jd-muted);
    font-size: 0.92rem;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .process-section .row {
        position: relative;
    }

    .process-section .row::before {
        content: "";
        position: absolute;
        top: 44px;
        left: 12%;
        right: 12%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--jd-border), transparent);
        z-index: 0;
    }

    .process-item {
        position: relative;
        z-index: 1;
    }
}

/* FAQ */
.faq-section {
    background: var(--jd-gradient-soft);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-accordion-item {
    background: #fff;
    border-radius: var(--jd-radius-sm);
    border: 1px solid var(--jd-border);
    box-shadow: var(--jd-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-accordion-item.is-open {
    box-shadow: var(--jd-shadow-lg);
}

.faq-accordion-header {
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    transition: background 0.2s ease;
}

.faq-accordion-header:hover {
    background: rgba(36, 80, 131, 0.04);
}

.faq-accordion-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    color: var(--jd-navy);
    flex: 1;
}

.faq-accordion-title i {
    color: var(--jd-accent);
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.faq-accordion-icon {
    color: var(--jd-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-accordion-item.is-open .faq-accordion-icon {
    transform: rotate(180deg);
    color: var(--jd-accent);
}

.faq-accordion-body {
    border-top: 1px solid var(--jd-border);
}

.faq-accordion-body .faq-content {
    padding: 1.25rem 1.25rem 1.5rem;
    color: var(--jd-muted);
}

.faq-list {
    padding-left: 1.25rem;
}

.faq-list li {
    margin-bottom: 0.35rem;
}

/* CTA band */
.cta-section {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    background: var(--jd-gradient);
    color: #fff;
}

.cta-content {
    padding: 2rem 1.5rem;
}

.cta-content h2 {
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.cta-content .lead,
.cta-content p {
    color: rgba(255, 255, 255, 0.92);
}

.cta-content .btn-primary {
    background: #fff;
    color: var(--jd-navy);
    border-color: #fff;
}

.cta-content .btn-primary:hover {
    background: var(--jd-pale);
    color: var(--jd-navy);
    border-color: var(--jd-pale);
}

/* Testimonios */
.testimonials-section {
    background: #fafbfd;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--jd-radius);
    padding: 1.75rem;
    border: 1px solid var(--jd-border);
    box-shadow: var(--jd-shadow);
    position: relative;
}

.testimonial-card::before {
    content: "\f10d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    color: rgba(26, 107, 181, 0.12);
}

.testimonial-rating {
    color: #f5a623;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--jd-text);
    position: relative;
    z-index: 1;
}

.testimonial-author h5 {
    font-size: 1rem;
}

/* Contacto + formulario */
.contact-form-section {
    background: linear-gradient(180deg, #fff 0%, var(--jd-pale) 100%);
}

.contact-info .section-title {
    text-align: left;
}

.contact-info .separator {
    margin-left: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border-radius: var(--jd-radius-sm);
    border: 1px solid var(--jd-border);
    box-shadow: var(--jd-shadow);
}

.contact-item > i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 107, 181, 0.12) 0%, rgba(36, 80, 131, 0.08) 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin: 0 !important;
    color: var(--jd-accent) !important;
}

.contact-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jd-navy);
}

.contact-item p {
    margin-bottom: 0;
    color: var(--jd-muted);
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--jd-accent);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #25d366;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
}

.social-link:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    color: #fff !important;
}

.form-card {
    background: #fff;
    border-radius: var(--jd-radius);
    padding: 2rem 1.75rem;
    border: 1px solid var(--jd-border);
    box-shadow: var(--jd-shadow-lg);
}

.form-card h3 {
    color: var(--jd-navy);
    font-weight: 700;
}

.form-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--jd-navy);
}

.form-card .form-control,
.form-card .form-control:focus {
    border-radius: 10px;
    border-color: var(--jd-border);
    padding: 0.65rem 1rem;
}

.form-card .form-control:focus {
    border-color: var(--jd-accent);
    box-shadow: 0 0 0 0.2rem rgba(26, 107, 181, 0.15);
}

/* Footer */
.site-footer.footer {
    background: var(--jd-gradient);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}

.site-footer .footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer h5 {
    color: #fff;
    font-weight: 700;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-links a {
    text-decoration: none;
    font-weight: 500;
}

.site-footer .footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
}

.site-footer .copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer .copyright img {
    vertical-align: middle;
    margin-left: 0.25rem;
}

/* WhatsApp flotante */
.whatsapp-button {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
}

.whatsapp-button:hover {
    transform: scale(1.08);
    color: #fff !important;
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

/* CTA móvil fija */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding: 0.75rem 1rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.95) 30%, #fff 100%);
    box-shadow: 0 -8px 30px rgba(13, 33, 86, 0.08);
}

.mobile-sticky-cta .btn {
    width: 100%;
    font-weight: 700;
    min-height: 52px;
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .mobile-sticky-cta {
        display: block;
    }

    body {
        padding-bottom: 88px;
    }

    .whatsapp-button {
        bottom: 5.5rem;
    }
}

/* Utilidades */
a {
    text-decoration: none;
}

.jd-tracking {
    letter-spacing: 0.08em;
}

.alert {
    border-radius: var(--jd-radius-sm);
}
