/* Abogia.es - Estilos profesionales */
:root {
    --gold-light: #C59751;
    --gold-medium: #8C5F2C;
    --gold-dark: #593612;
    --gold-darker: #311802;
    --black: #0D0D0D;
    --white: #FFFFFF;
}

* {
    scroll-margin-top: 80px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--black);
    overflow-x: hidden;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--gold-darker);
}

.text-gold {
    color: var(--gold-medium) !important;
}

.letter-spacing {
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand .brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-light) !important;
}

.navbar-brand .brand-tagline {
    font-size: 0.75rem;
    color: rgba(197, 151, 81, 0.8) !important;
}

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

.nav-link:hover,
.nav-link:focus {
    color: var(--gold-light) !important;
    background: rgba(197, 151, 81, 0.1);
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.9) 0%, rgba(49, 24, 2, 0.8) 100%);
}

.hero-section .container {
    z-index: 2;
}

.hero-logo {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero-section h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Botones */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-medium));
    color: white !important;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(197, 151, 81, 0.4);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-medium), var(--gold-dark));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 151, 81, 0.5);
}

.btn-outline-gold {
    color: var(--gold-light) !important;
    border: 2px solid var(--gold-light);
    background: transparent;
    font-weight: 600;
}

.btn-outline-gold:hover {
    background: rgba(197, 151, 81, 0.15);
    color: var(--gold-light) !important;
    border-color: var(--gold-light);
}

/* Badges */
.bg-gold-light {
    background: rgba(197, 151, 81, 0.15) !important;
}

.text-gold-dark {
    color: var(--gold-darker) !important;
}

/* Feature mini cards */
.feature-mini-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(89, 54, 18, 0.08);
    border: 1px solid rgba(197, 151, 81, 0.1);
    transition: all 0.3s ease;
}

.feature-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(89, 54, 18, 0.15);
    border-color: rgba(197, 151, 81, 0.2);
}

/* Flow cards */
.flow-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(89, 54, 18, 0.08);
    border: 1px solid rgba(197, 151, 81, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

.flow-card:hover {
    box-shadow: 0 8px 30px rgba(89, 54, 18, 0.12);
    border-color: rgba(197, 151, 81, 0.25);
}

.flow-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-medium));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.flow-arrow {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--gold-medium);
    z-index: 10;
}

.flow-card h5 {
    color: var(--gold-darker);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Tabs módulos */
.modules-tabs-grid {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
}

#modulosTabs .nav-item {
    width: 100%;
}

#modulosTabs .nav-link {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.nav-pills .nav-link {
    color: var(--gold-darker) !important;
    background: rgba(197, 151, 81, 0.08);
    border: 1px solid rgba(197, 151, 81, 0.2);
    margin: 2px;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.nav-pills .nav-link:hover {
    background: rgba(197, 151, 81, 0.15);
    border-color: rgba(197, 151, 81, 0.4);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--gold-medium), var(--gold-dark)) !important;
    color: white !important;
    border-color: transparent;
}

.module-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(89, 54, 18, 0.08);
    border: 1px solid rgba(197, 151, 81, 0.15);
}

.module-card h4 {
    color: var(--gold-darker);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.module-card .lead {
    color: var(--gold-medium);
    font-weight: 500;
    margin-bottom: 1rem;
}

.module-card p {
    color: #555;
    line-height: 1.7;
}

.module-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-tag {
    background: rgba(197, 151, 81, 0.1);
    color: var(--gold-darker);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-tag i {
    color: var(--gold-medium);
}

/* Sección tecnología y beneficios */
.bg-dark-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--gold-darker) 100%);
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 151, 81, 0.2);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(197, 151, 81, 0.35);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-medium));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.25rem;
}

.benefit-card h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Precios */
.pricing-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(89, 54, 18, 0.1);
    border: 1px solid rgba(197, 151, 81, 0.15);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 50px rgba(89, 54, 18, 0.15);
}

.pricing-highlight {
    border: 2px solid var(--gold-medium);
    box-shadow: 0 8px 40px rgba(197, 151, 81, 0.2);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-medium));
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom-left-radius: 12px;
}

.pricing-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(197, 151, 81, 0.1);
}

.pricing-header h4 {
    color: var(--gold-darker);
    font-weight: 700;
}

.pricing-body {
    padding: 2rem;
}

.price-tag {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-darker);
    line-height: 1;
}

.period {
    color: #666;
    font-size: 0.95rem;
}

.price-addon {
    text-align: center;
    background: rgba(197, 151, 81, 0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.plus {
    display: block;
    font-size: 1.5rem;
    color: var(--gold-medium);
    margin-bottom: 0.25rem;
}

.addon-price {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.addon-desc {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #555;
    font-size: 0.95rem;
}

.pricing-notes {
    margin-top: 3rem;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(197, 151, 81, 0.05);
    border-radius: 12px;
    height: 100%;
}

.note-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.note-item h6 {
    color: var(--gold-darker);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.note-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* CTA Section */
.bg-gold-gradient {
    background: linear-gradient(135deg, var(--gold-medium) 0%, var(--gold-dark) 100%);
}

/* Formulario contacto */
.form-control:focus,
.form-check-input:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 0.25rem rgba(197, 151, 81, 0.25);
}

.form-control:focus {
    border-color: var(--gold-medium);
}

.form-label {
    font-weight: 500;
    color: var(--gold-darker);
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 1.05rem;
}

.contact-info i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* CAPTCHA */
.captcha-box {
    background: rgba(197, 151, 81, 0.05);
    border: 1px solid rgba(197, 151, 81, 0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.captcha-operacion {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-darker);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(197, 151, 81, 0.3);
    min-width: 100px;
    text-align: center;
}

.captcha-input {
    max-width: 80px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.captcha-input:focus {
    border-color: var(--gold-medium);
    box-shadow: 0 0 0 0.25rem rgba(197, 151, 81, 0.25);
}

/* Galería Programa */
.programa-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(89, 54, 18, 0.1);
    border: 1px solid rgba(197, 151, 81, 0.15);
    transition: all 0.3s ease;
    aspect-ratio: 16/10;
    background: #f8f8f8;
}

.programa-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(89, 54, 18, 0.2);
    border-color: rgba(197, 151, 81, 0.35);
}

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

.programa-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.programa-thumb:hover .programa-thumb-overlay {
    opacity: 1;
}

.programa-thumb-overlay i {
    font-size: 2.5rem;
    color: white;
}

/* Modal Galería */
.programa-viewer {
    max-width: 95%;
    max-height: 85vh;
    overflow: auto;
}

.programa-zoom-img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.programa-zoom-img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.programa-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(197, 151, 81, 0.4);
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.programa-nav:hover {
    background: rgba(197, 151, 81, 0.7);
}

.programa-nav-prev { left: 20px; }
.programa-nav-next { right: 20px; }

@media (max-width: 768px) {
    .programa-nav {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .programa-nav-prev { left: 10px; }
    .programa-nav-next { right: 10px; }
}

/* Slider / Galería */
.slider-section {
    position: relative;
}

#galeriaCarousel {
    height: 500px;
}

.carousel-item {
    height: 500px;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg-solid {
    background: linear-gradient(135deg, var(--gold-darker) 0%, var(--gold-dark) 50%, var(--gold-medium) 100%);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.6) 0%, rgba(49, 24, 2, 0.4) 100%);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
}

.carousel-caption h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 6px;
}

.carousel-indicators button.active {
    background-color: var(--gold-light);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(197, 151, 81, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(197, 151, 81, 0.5);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Informe */
.inner-hero {
    min-height: 78vh;
}

.report-kicker {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(197, 151, 81, 0.18);
    border: 1px solid rgba(197, 151, 81, 0.35);
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.report-intro-card {
    background: white;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(89, 54, 18, 0.08);
    border: 1px solid rgba(197, 151, 81, 0.14);
    font-size: 1.1rem;
    line-height: 1.85;
    color: #4d4d4d;
}

.report-card,
.report-stack-card,
.report-list-card,
.report-summary-box,
.report-quote-box {
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(197, 151, 81, 0.15);
    box-shadow: 0 8px 28px rgba(89, 54, 18, 0.08);
}

.report-card,
.report-stack-card {
    padding: 2rem;
}

.report-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(197, 151, 81, 0.18), rgba(140, 95, 44, 0.14));
    color: var(--gold-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.report-card h5,
.report-stack-card h5,
.report-summary-box h5,
.report-list-item h6 {
    color: var(--gold-darker);
    font-weight: 700;
}

.report-card p,
.report-stack-card p,
.report-list-item p,
.report-summary-box p {
    color: #5c5c5c;
    line-height: 1.75;
    margin-bottom: 0;
}

.report-checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 151, 81, 0.18);
    border-radius: 14px;
    color: #d7d7d7;
}

.report-check-item i {
    color: var(--gold-light);
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.report-step {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-medium));
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.report-list-card {
    padding: 0.5rem 0;
}

.report-list-item {
    padding: 1.35rem 1.5rem;
}

.report-list-item + .report-list-item {
    border-top: 1px solid rgba(197, 151, 81, 0.14);
}

.report-quote-box {
    padding: 2rem;
    background: linear-gradient(135deg, var(--gold-darker), var(--gold-dark));
}

.report-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.7;
    color: white;
    margin: 0;
}

.report-summary-box {
    padding: 2rem;
}

/* Noticias */
.news-card {
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(197, 151, 81, 0.16);
    box-shadow: 0 8px 30px rgba(89, 54, 18, 0.08);
    padding: 2rem;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(89, 54, 18, 0.12);
}

.news-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-dark);
    background: rgba(197, 151, 81, 0.1);
    border: 1px solid rgba(197, 151, 81, 0.18);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.35;
    color: var(--gold-darker);
    margin-bottom: 1rem;
}

.news-card p {
    color: #5a5a5a;
    line-height: 1.75;
    margin-bottom: 0;
}

.news-proof {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: rgba(197, 151, 81, 0.08);
    border-left: 4px solid var(--gold-medium);
    color: #4e4e4e;
    line-height: 1.7;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--black);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .flow-arrow {
        display: none !important;
    }

    .price {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-logo {
        height: 100px;
    }

    #modulosTabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-card {
        padding: 1.5rem;
    }

    .flow-card {
        padding: 1.5rem;
    }

    .pricing-header,
    .pricing-body {
        padding: 1.5rem;
    }

    .report-intro-card,
    .report-card,
    .report-stack-card,
    .report-summary-box,
    .report-quote-box,
    .news-card {
        padding: 1.5rem;
    }

    .report-quote {
        font-size: 1.2rem;
    }
}

@media (max-width: 1200px) and (min-width: 769px) {
    #modulosTabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-section .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    #galeriaCarousel,
    .carousel-item {
        height: 350px;
    }

    .carousel-caption h3 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }
}
