/* ===================================
   APOYO CONTABLE - CUSTOM STYLES
   Diseño corporativo profesional
   =================================== */

/* --- Variables de Color --- */
:root {
    --primary-dark: #1A3A5F;
    --primary-blue: #3A7BD5;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --text-gray: #4A4A4A;
    --accent-green: #1DBF73;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
}

/* --- Reset y Estilos Globales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.3;
    scroll-margin-top: 100px; /* Margen para anclas en títulos */
}

section {
    scroll-margin-top: 90px; /* Margen para anclas en secciones */
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header / Navbar --- */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand .logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-gray);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231A3A5F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Botones --- */
.btn-primary-custom {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: none;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    border: none;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #F5F7FA 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding-right: 2rem;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge-item i {
    font-size: 1.75rem;
    color: var(--primary-blue);
}

.badge-item span {
    font-weight: 500;
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- Benefits Section --- */
.benefits-section {
    padding: 60px 0;
    background-color: var(--white);
}

.benefit-card {
    background-color: var(--light-gray);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--white);
}

.benefit-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.service-card.featured {
    border: 2px solid var(--primary-blue);
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F9FF 100%);
}

.service-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--accent-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li i {
    color: var(--accent-green);
    font-size: 1rem;
}

/* --- Process Section --- */
.process-section {
    padding: 80px 0;
    background-color: var(--white);
}

.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--light-gray);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.step-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.step-icon i {
    font-size: 2.25rem;
    color: var(--white);
}

.process-step h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.process-step p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: var(--white);
}

.testimonial-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.testimonial-rating {
    margin-bottom: 1.5rem;
}

.testimonial-rating i {
    color: #FFB800;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

/* --- Team Section --- */
.team-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.team-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.08);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.team-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.team-specialty {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-gray);
    border-radius: 50%;
    color: var(--primary-dark);
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.contact-info > p {
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.info-content p {
    margin: 0;
    color: var(--text-gray);
}

.info-content a {
    color: var(--primary-blue);
    font-weight: 500;
}

.info-content a:hover {
    color: var(--primary-dark);
}

.business-hours {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.business-hours h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.business-hours p {
    margin: 0;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Contact Form */
.contact-form-container {
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 16px;
}

.contact-form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E0E5EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-widget h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-widget h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright,
.credits {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.credits i {
    color: #FF6B6B;
}

/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top i {
    font-size: 1.25rem;
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .btn-primary-custom {
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .services-section,
    .process-section,
    .testimonials-section,
    .team-section,
    .contact-section {
        padding: 60px 0;
    }

    .contact-form-container {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 575px) {
    .benefit-card,
    .service-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Language Switcher Styling */
.language-switcher {
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-switcher:hover {
    color: var(--primary-color) !important;
}

.language-switcher i {
    font-size: 1.1em;
}