/* ==========================================
   1. RESETS Y ESTILOS GENERALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f3f4f6;
    color: #1a202c;
}

/* ==========================================
   2. HEADER Y NAVEGACIÓN ESCRITORIO
   ========================================== */
.site-header {
    background-color: #d1d5db; /* Color gris de la barra */
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

/* --- LOGO CENTRADO CON EFECTO LIFT --- */
.logo-box {
    position: relative;
    z-index: 10;
}

.logo-box img {
    height: 120px;
    width: auto;
    border-radius: 50%;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.logo-box img:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

/* --- MENÚS DE NAVEGACIÓN --- */
.nav-side ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-side a {
    text-decoration: none;
    color: #111827;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-side a.active {
    color: #16a34a !important; /* Verde destacado */
}

.nav-side a:hover,
.nav-side .dropdown:hover > a {
    color: #16a34a;
}

.nav-side i {
    font-size: 0.75rem;
}

/* --- SUBMENÚS DESPLEGABLES --- */
.dropdown {
    position: relative;
}

.nav-side .dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 210px;
    padding: 10px 0;
    z-index: 1000;
    list-style: none;
    flex-direction: column !important;
}

.nav-side .dropdown-menu li {
    width: 100%;
    display: block;
}

.nav-side .dropdown-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.nav-side .dropdown-menu li a:hover {
    background-color: #f3f4f6;
    color: #16a34a;
}

.nav-side .dropdown:hover .dropdown-menu {
    display: flex !important;
}

/* ==========================================
   3. HERO SECTION Y VIDEOS
   ========================================== */
.hero-section {
    background-color: #f3f4f6;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
}

.hero-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.video-pc {
    display: block;
}

.video-mobile {
    display: none;
}

/* ==========================================
   4. OCULTAR ELEMENTOS MÓVILES EN DESKTOP
   ========================================== */
.mobile-menu-btn,
.mobile-nav-wrapper {
    display: none !important;
}

/* ==========================================
   5. MEDIA QUERIES (DISPOSITIVOS MÓVILES <= 900px)
   ========================================== */
@media (max-width: 900px) {
    
    .header-container {
        padding: 0 20px;
    }

    .nav-side {
        display: none !important;
    }

    .logo-box img {
        height: 85px;
    }

    .mobile-menu-btn {
        display: block !important;
        background: transparent;
        border: none;
        font-size: 1.8rem;
        color: #1f2937;
        cursor: pointer;
        padding: 5px;
    }

    .mobile-nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        padding: 20px;
        z-index: 999;
    }

    .mobile-nav-wrapper.show {
        display: block !important;
    }

    .mobile-nav-wrapper ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-wrapper li {
        margin-bottom: 12px;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 8px;
    }

    .mobile-nav-wrapper a, 
    .mobile-drop-title {
        font-weight: 700;
        color: #1f2937;
        text-decoration: none;
        font-size: 1.05rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .mobile-nav-wrapper a.active {
        color: #16a34a;
    }

    .mobile-sub-menu {
        display: none;
        padding-left: 15px;
        margin-top: 8px;
    }

    .mobile-sub-menu li {
        border-bottom: none;
        padding-bottom: 4px;
    }

    .mobile-sub-menu li a {
        font-weight: 600;
        font-size: 0.95rem;
        color: #4b5563;
    }

    .mobile-dropdown.active .mobile-sub-menu {
        display: block;
    }

    .hero-section {
        padding: 15px 0;
    }

    .video-pc {
        display: none !important;
    }

    .video-mobile {
        display: block !important;
        max-height: 90vh;
    }
}

/* ==========================================
   6. SECCIÓN OUR HORIZON & TABS
   ========================================== */
.horizon-section {
    padding: 60px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.horizon-container {
    max-width: 850px;
    width: 100%;
    text-align: center;
}

.horizon-title {
    font-size: 2.2rem;
    color: #3b4269;
    font-weight: 800;
    margin-bottom: 8px;
}

.horizon-subtitle {
    color: #ff3b68;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Tarjeta principal con pestañas */
.tabs-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 50px;
}

.tabs-header {
    display: flex;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    padding: 16px 10px;
    background: #f1f5f9;
    border: none;
    border-right: 1px solid #e2e8f0;
    border-top: 3px solid transparent;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn.active {
    background: #212538; /* Sincroniza con el fondo azul de la tarjeta */
    border-top: 3px solid #ff3b68;
    color: #ffffff;
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Contenido con FONDO AZUL y LETRAS BLANCAS */
.tabs-content {
    padding: 30px 35px;
    text-align: left;
    background-color: #212538; /* Azul marino */
}

.tab-pane {
    display: none;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ffffff; /* Letras en blanco */
}

.tab-pane p {
    color: #ffffff !important;
    margin: 0;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CONTACTO / CONSULTAS --- */
.horizon-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.inquiry-text {
    font-size: 1.05rem;
    color: #1e293b;
    font-weight: 600;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.phone-link, .whatsapp-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #ff3b68;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.wa-circle {
    background-color: #e2e8f0;
    color: #3b82f6;
}

.phone-number, .wa-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #94a3b8;
}

@media (max-width: 600px) {
    .tabs-header {
        flex-direction: column;
    }
    .tab-btn {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* ==========================================
   7. SECCIÓN BANNERS EXPERTISE & RESOURCES
   ========================================== */
.cards-banner-section {
    padding: 40px 20px 70px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.cards-banner-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.banner-card {
    height: 380px;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-expertise {
    background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), 
                      url('img/expertise.jpg');
}

.card-resources {
    background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), 
                      url('img/resources.jpg');
}

.banner-btn {
    background-color: #ff3b68;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 16px 50px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 59, 104, 0.35);
    transition: all 0.3s ease;
    z-index: 2;
}

.banner-btn:hover {
    background-color: #e62e58;
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 22px rgba(255, 59, 104, 0.5);
}

@media (max-width: 768px) {
    .cards-banner-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner-card {
        height: 260px;
    }

    .banner-btn {
        padding: 14px 40px;
        font-size: 1.1rem;
    }
}

/* ==========================================
   8. SECCIÓN WORK WITH US
   ========================================== */
.work-section {
    padding: 40px 20px 80px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.work-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.work-title {
    font-size: 2.2rem;
    color: #3b4269;
    font-weight: 800;
    margin-bottom: 40px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    padding: 25px 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.card-portal {
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), 
                      url('img/client-protal.jpg');
}

.card-about {
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), 
                      url('img/about-us.jpg');
}

.card-services {
    background-image: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45)), 
                      url('img/our-services.jpg');
}

.work-card-text {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Times New Roman', Times, serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-card {
        aspect-ratio: 4 / 3;
    }
}

/* ==========================================
   9. SECCIÓN LEAVE US A MESSAGE
   ========================================== */
.contact-form-section {
    padding: 60px 20px;
    background-image: url('img/rm222-mind-24.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.form-title {
    font-size: 2.5rem;
    color: #ff3b68;
    font-weight: 800;
    margin-bottom: 30px;
}

.iframe-wrapper {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.iframe-wrapper iframe {
    border: none;
    display: block;
    width: 100%;
}

@media (max-width: 600px) {
    .contact-form-section {
        padding: 40px 10px;
    }

    .form-title {
        font-size: 1.8rem;
    }
}

/* ==========================================
   10. SECCIÓN FOOTER / PIE DE PÁGINA
   ========================================== */
.site-footer {
    background-color: #939bc4;
    background-image: radial-gradient(circle at 100% 50%, #4f588c 0%, #4f588c 40%, transparent 40.1%);
    padding: 50px 20px 30px 20px;
    position: relative;
    color: #ffffff;
    display: flex;
    justify-content: center;
}

.footer-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-headers {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 900px;
    margin-bottom: 15px;
}

.footer-header-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.footer-row {
    width: 100%;
    max-width: 900px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.row-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.footer-btn {
    background-color: #ff3b68;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 25px;
    border-radius: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background-color: #e62e58;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.full-btn {
    width: 100%;
}

.wa-btn {
    width: auto;
    min-width: 200px;
    padding: 12px 35px;
    font-size: 1.05rem;
}

.footer-schedule {
    margin: 20px 0 35px 0;
    text-align: center;
}

.footer-schedule p {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 110px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ff3b68;
}

.footer-credits p {
    font-size: 0.95rem;
    color: #ffffff;
}

.footer-credits a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
}

.footer-credits a:hover {
    color: #ff3b68;
}

.scroll-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #ff3b68;
    color: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top-btn:hover {
    background-color: #e62e58;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .row-two-cols {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-headers {
        display: none;
    }

    .footer-schedule p {
        font-size: 0.95rem;
    }
}

/* ==========================================
   11. SECCIÓN ABOUT US (FONDO OSCURO)
   ========================================== */
.about-hero-section {
    background-color: #212538;
    padding: 60px 20px 80px 20px;
    color: #ffffff;
    display: flex;
    justify-content: center;
}

.about-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.about-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.about-video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.about-large-logo img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-right-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-main-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.about-pink-sub {
    color: #ff3b68;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.about-tabs-card {
    margin-top: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.about-tabs-card .tabs-content {
    background-color: #1a1d2d; /* Fondo azul ligeramente más profundo dentro del panel de About */
}

.about-inquiry-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-inquiry-text {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.about-phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.about-phone-icon {
    width: 35px;
    height: 35px;
    background-color: #ff3b68;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.about-phone-num {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-large-logo img {
        width: 240px;
        height: 240px;
    }

    .about-main-title {
        font-size: 1.8rem;
    }
}

/* ==========================================
   SECCIÓN WHY CHOOSE JT TAX SERVICES
   ========================================== */
.why-choose-section {
    background-color: #212538; /* Mismo fondo azul oscuro */
    width: 100%;
    display: flex;
    justify-content: center;
}

.why-choose-container {
    max-width: 1300px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* Imagen de José ajustada */
.why-choose-img {
    width: 100%;
    height: 100%;
    display: flex;
}

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

/* Columna de Texto */
.why-choose-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.why-choose-sub {
    color: #ff3b68; /* Rosa vibrante */
    font-size: 1.05rem;
    font-weight: 600;
}

.why-choose-title {
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.why-choose-text {
    color: #e2e8f0;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 10px;
}

/* Responsive para pantallas móviles */
@media (max-width: 900px) {
    .why-choose-container {
        grid-template-columns: 1fr;
    }

    .why-choose-content {
        padding: 40px 20px;
    }

    .why-choose-title {
        font-size: 1.8rem;
    }
}

/* ==========================================
   SECCIÓN OUR SERVICES & FLIP CARDS 3D
   ========================================== */
.services-hero-section {
    background-color: #ffffff;
    padding: 70px 20px 90px 20px;
    display: flex;
    justify-content: center;
}

.services-container {
    max-width: 1250px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Columna de Texto */
.services-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #212538;
    margin-bottom: 25px;
}

.services-sub-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212538;
    margin-bottom: 15px;
}

.services-headline {
    font-size: 2.4rem;
    font-weight: 800;
    color: #212538;
    line-height: 1.25;
    margin-bottom: 25px;
}

.services-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
}

/* Grilla de Tarjetas Giratorias */
.services-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* --- ESTRUCTURA Y GIRO 3D FLIP CARD --- */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px;
    text-decoration: none;
    display: block;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    border-radius: 12px;
}

/* Giro Horizontal al hacer Hover */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* CARAS FRONTAL Y TRASERA (OCULTAR ESPALDA) */
.flip-card-front, 
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    
    /* Indispensables para evitar que se encimen las letras */
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}

/* CARA FRONTAL (AZUL MARINO) */
.flip-card-front {
    background-color: #3b4269;
    color: #ffffff;
    z-index: 2;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
}

.flip-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ff3b68;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.flip-card-front h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.flip-card-front p {
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* CARA TRASERA (ROSA / ROJO VIBRANTE) */
.flip-card-back {
    background-color: #ff3b68;
    color: #ffffff;
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.flip-card-back h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.flip-card-back p {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 18px;
}

.flip-arrow-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ffffff;
}

@media (max-width: 900px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-cards-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        height: 220px;
    }
}

/* ==========================================
   PÁGINA BOOKKEEPING SERVICES
   ========================================== */
.bk-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sección 1: Header de Título y Frase */
.bk-header-section {
    width: 100%;
}

.bk-title-bar {
    background-color: #71717a; /* Gris neutro elegante */
    padding: 25px 20px;
    text-align: center;
}

.bk-title-bar h1 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
}

.bk-headline-box {
    background-color: #ffffff;
    padding: 35px 20px;
    text-align: center;
}

.bk-headline-box h2 {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 800;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 1.35;
}

/* Sección 2: Texto Informativo */
.bk-content-section {
    background-color: #ffffff;
    padding: 20px 0 50px 0;
}

.bk-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ff3b68; /* Rosa corporativo */
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    margin-bottom: 25px;
    transition: transform 0.2s ease;
}

.bk-back-link:hover {
    transform: translateX(-4px);
}

.bk-text-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 20px;
}

/* Sección 3: Barras de Progreso Animadas */
.bk-progress-section {
    background-color: #ffffff;
    padding: 20px 0 60px 0;
}

.progress-item {
    margin-bottom: 25px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0; /* Controlado mediante JS */
    background: linear-gradient(90deg, #3b4269, #ff3b68);
    border-radius: 20px;
    transition: width 1.5s cubic-bezier(0.1, 0.42, 0.41, 0.8);
}

/* Sección 4: Galería de 3 Imágenes (Fondo Gris) */
.bk-gallery-section {
    background-color: #f1f5f9; /* Fondo gris solicitado */
    padding: 60px 0;
}

.bk-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: 260px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* Sección 5: Formulario y Contacto Directo */
.bk-contact-section {
    background-color: #ffffff;
    padding: 70px 0 90px 0;
}

.bk-contact-main-title {
    font-size: 2.2rem;
    color: #939bc4;
    font-weight: 800;
    margin-bottom: 40px;
}

.bk-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.bk-form-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.bk-action-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 35px;
}

.action-btn {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: #939bc4; /* Tono azul violáceo de las capturas */
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.action-btn:hover {
    color: #ff3b68;
    transform: translateX(5px);
}

.action-sub-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
}

@media (max-width: 900px) {
    .bk-gallery-grid, 
    .bk-contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bk-headline-box h2 {
        font-size: 1.4rem;
    }

    .action-btn {
        font-size: 1.2rem;
    }
}

/* ==========================================
   PÁGINA BUSINESS TAXES
   ========================================== */
.biz-services-section {
    background-color: #ffffff;
    padding: 40px 0 70px 0;
}

.biz-services-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #212538;
    margin-bottom: 40px;
}

.biz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Columna Izquierda: Lista de Servicios */
.biz-list {
    display: flex;
    flex-direction: column;
}

.biz-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

.item-shaded {
    background-color: #f8fafc;
    border-radius: 6px;
}

.icon-pink {
    color: #ff3b68;
    font-size: 1.2rem;
}

/* Columna Derecha: Barras Rayadas */
.biz-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-striped {
    background: repeating-linear-gradient(
        45deg,
        #ff3b68,
        #ff3b68 10px,
        #ff537b 10px,
        #ff537b 20px
    ) !important;
}

/* Sección Galería y Global Vision */
.biz-gallery-section {
    background-color: #ffffff;
    padding: 40px 0 70px 0;
}

.biz-text-section {
    margin-top: 50px;
}

.biz-sub-headline {
    font-size: 1.8rem;
    font-weight: 800;
    color: #212538;
    margin-bottom: 25px;
}

.biz-text-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.biz-text-cols p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

@media (max-width: 900px) {
    .biz-grid, 
    .biz-text-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .biz-services-title,
    .biz-sub-headline {
        font-size: 1.4rem;
    }
}

/* Submenú Móvil con Tabulación / Indentación */
.mobile-sub-menu {
    display: none;
    list-style: none;
    padding-left: 20px; /* <--- Tabulador/Margen interior */
    background-color: rgba(0, 0, 0, 0.03); /* Ligero fondo para diferenciar */
    border-left: 3px solid #ff3b68; /* Línea rosa guía elegante */
    margin-top: 8px;
    margin-bottom: 8px;
}

.mobile-sub-menu li a {
    font-size: 0.95rem;
    padding: 10px 15px;
    color: #4b5563;
    display: block;
}

.mobile-sub-menu li a:hover,
.mobile-sub-menu li a.active {
    color: #ff3b68;
    font-weight: 700;
}

/* ==========================================
   SECCIÓN DE GRÁFICO INTERACTIVO (CORPORATIONS)
   ========================================== */
.chart-section {
    background-color: #ffffff;
    padding: 40px 20px 70px 20px;
    display: flex;
    justify-content: center;
}

.chart-container-box {
    max-width: 850px;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 35px 30px 0 30px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.chart-main-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 6px;
}

.chart-sub-title {
    font-size: 1rem;
    font-style: italic;
    color: #64748b;
    margin-bottom: 30px;
}

.chart-canvas-wrapper {
    position: relative;
    max-width: 520px;
    margin: 0 auto 35px auto;
    height: 380px;
}

.chart-footer-banner {
    background-color: #0099ff;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 20px;
    margin: 0 -30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================
   PÁGINA IRS WITHHOLDING CALCULATOR
   ========================================== */
.res-sub-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin: 25px 0 15px 0;
}

.res-list {
    margin-bottom: 20px;
    padding-left: 20px;
}

.res-list li {
    font-size: 1.02rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 10px;
}

/* Sección de Recursos Llamativos */
.res-featured-section {
    background-color: #f8fafc;
    padding: 50px 0 80px 0;
}

.res-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 30px;
}

.res-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.res-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.res-card-icon {
    width: 60px;
    height: 60px;
    background-color: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ff3b68;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.res-card-info {
    flex-grow: 1;
}

.res-card-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.res-card-info p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.res-card-arrow {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effects */
.res-card:hover {
    transform: translateY(-5px);
    border-color: #ff3b68;
    box-shadow: 0 12px 25px rgba(255, 59, 104, 0.12);
}

.res-card:hover .res-card-icon {
    background-color: #ff3b68;
    color: #ffffff;
}

.res-card:hover .res-card-arrow {
    color: #ff3b68;
    transform: translateX(4px);
}

/* Estilo destacado para la Calculadora */
.res-card-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #fff0f3 100%);
    border-color: #fca5a5;
}
.badge-pink {
    background-color: #ff3b68;
}

/* ==========================================
   PÁGINA TAX RATES (TIMELINE Y ANIMACIÓN SLIDE-DOWN)
   ========================================== */
.rates-main-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}

.rates-timeline-section {
    background-color: #f8fafc;
    padding: 20px 0 80px 0;
}

.rate-card-timeline {
    position: relative;
    padding-left: 50px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(-40px); /* Inicia desplazada hacia arriba */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Línea vertical guía del timeline */
.rate-card-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -50px;
    width: 3px;
    background-color: #0099ff;
}

.rate-card-timeline:last-child::before {
    display: none;
}

/* Clase activa agregada vía JS al hacer scroll */
.rate-card-timeline.is-visible {
    opacity: 1;
    transform: translateY(0); /* Se desliza de arriba hacia abajo */
}

/* Badge circular */
.timeline-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}

.badge-blue {
    background-color: #0099ff;
}

.badge-light-blue {
    background-color: #0284c7;
}

/* Contenido de la tarjeta */
.rate-card-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.rate-card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 25px;
}

.margin-top-title {
    margin-top: 40px;
}

.tax-table-block {
    margin-bottom: 30px;
}

.tax-table-block h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 12px;
}

.table-responsive {
    overflow-x: auto;
}

.tax-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.tax-table th, 
.tax-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.95rem;
}

.tax-table th {
    background-color: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
}

.tax-table td {
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.tax-table tr:hover td {
    background-color: #f8fafc;
}

@media (max-width: 768px) {
    .rate-card-timeline {
        padding-left: 0;
    }
    
    .rate-card-timeline::before,
    .timeline-badge {
        display: none;
    }
}

/* ==========================================
   PÁGINA RECORD RETENTION GUIDE
   ========================================== */
.retention-section {
    background-color: #f8fafc;
    padding: 30px 0 80px 0;
}

.retention-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 25px;
}

/* Sidebar de Navegación */
.retention-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.sidebar-box h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-box li {
    margin-bottom: 10px;
}

.sidebar-box a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.sidebar-box a:hover {
    color: #ff3b68;
}

/* Tarjetas de Contenido */
.guide-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 35px 30px;
    margin-bottom: 35px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.guide-main-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.guide-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 15px;
}

/* Tablas de la Guía */
.guide-table-wrapper {
    margin: 25px 0;
}

.table-caption {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.styled-guide-table {
    width: 100%;
    border-collapse: collapse;
}

.styled-guide-table th,
.styled-guide-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.95rem;
}

.styled-guide-table th {
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1;
}

.styled-guide-table td {
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.styled-guide-table tr:hover td {
    background-color: #f8fafc;
}

.table-list {
    padding-left: 18px;
    margin: 0;
}

.table-list li {
    margin-bottom: 4px;
}

/* Badges de Tiempo */
.badge-time {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.badge-alert {
    background-color: #ffe4e6;
    color: #e11d48;
}

/* Callout Box */
.callout-box {
    background-color: #fff1f2;
    border-left: 4px solid #ff3b68;
    padding: 18px;
    border-radius: 6px;
    margin-top: 20px;
}

.callout-box p {
    margin: 0;
    color: #881337;
}

.custom-bullet-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.custom-bullet-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 10px;
}

.specific-topic {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.specific-topic h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .retention-layout {
        grid-template-columns: 1fr;
    }

    .retention-sidebar {
        display: none;
    }
}