/* 
* domain - Auditoría Financiera
* Color palette:
* - Deep Azure Blue: #007BA7
* - Pastel Orange: #F6A623
* - Warm Gray: #F4F4F4
* - Night Indigo: #1C1C2D
* - Accent Purple: #BF4AA8
*/

/* ----- RESET & BASE STYLES ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px; /* Add padding for anchor links */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: #007BA7;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #BF4AA8;
}

ul, ol {
    list-style: none;
}

/* ----- CONTAINER & LAYOUT ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #1C1C2D;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007BA7, #BF4AA8);
    border-radius: 2px;
}

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* ----- LOGO ----- */
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1C1C2D;
}

.logo-highlight {
    color: #BF4AA8;
}

/* ----- HEADER & NAVIGATION ----- */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-list a {
    font-weight: 500;
    color: #1C1C2D;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #BF4AA8;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a:focus::after {
    width: 100%;
}

.nav-cta {
    background-color: #007BA7;
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.nav-cta:hover,
.nav-cta:focus {
    background-color: #005a7d;
}

.nav-cta::after {
    display: none !important;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-line {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 10px;
    background: #1C1C2D;
}

@media (max-width: 992px) {
    .menu-icon {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .menu-toggle:checked ~ .main-nav {
        max-height: 400px;
    }

    .menu-toggle:checked + .menu-icon .menu-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle:checked + .menu-icon .menu-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-icon .menu-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .menu-icon .menu-line {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
}

/* ----- HERO SECTION ----- */
.hero-section {
    background: linear-gradient(rgba(28, 28, 45, 0.7), rgba(28, 28, 45, 0.7)),
                url('./img/dMbJEF.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 6rem 0;
    position: relative;
}

.hero-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(to right, #007BA7, #BF4AA8);
    color: white;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 167, 0.3);
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(191, 74, 168, 0.4);
}

/* ----- ABOUT SECTION ----- */
.about-section {
    background-color: #F4F4F4;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1 1 400px;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1 1 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ----- BENEFITS SECTION ----- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #007BA7, #BF4AA8);
    z-index: -1;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F4F4;
    border-radius: 50%;
    font-size: 2rem;
    color: #007BA7;
}

/* Icons using pseudoelements for no JS requirement */
.icon-certificate::before {
    content: "✓";
}

.icon-experience::before {
    content: "★";
}

.icon-personalized::before {
    content: "♦";
}

.icon-confidential::before {
    content: "♣";
}

.icon-user::before {
    content: "👤";
}

.icon-phone::before {
    content: "📞";
}

.icon-email::before {
    content: "✉";
}

.icon-location::before {
    content: "📍";
}

/* ----- SERVICES SECTION ----- */
.services-section {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 1.5rem 1.5rem 1rem;
    color: #1C1C2D;
}

.service-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.service-button {
    display: inline-block;
    margin: 0.5rem 1.5rem 1.5rem;
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    color: #007BA7;
    border: 2px solid #007BA7;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.service-button:hover {
    background-color: #007BA7;
    color: white;
}

/* ----- PROCESS SECTION ----- */
.process-section {
    background-color: #F4F4F4;
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 60px;
    height: calc(100% - 10px);
    width: 2px;
    background-color: #007BA7;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007BA7, #BF4AA8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    z-index: 1;
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    color: #1C1C2D;
    margin-bottom: 0.5rem;
}

/* ----- TESTIMONIALS SECTION ----- */
.testimonials-section {
    background: linear-gradient(rgba(28, 28, 45, 0.9), rgba(28, 28, 45, 0.9)),
                url('./img/CHvvqe.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    position: relative;
}

.testimonials-section h2 {
    color: white;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    line-height: 0;
    display: block;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.testimonial-author h4 {
    color: #F6A623;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ----- FAQ SECTION ----- */
.faq-section {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 3rem;
    transition: background-color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #007BA7;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.2rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 1.2rem 1.2rem;
}

.faq-toggle:checked ~ .faq-question {
    background-color: #F4F4F4;
}

.faq-toggle:checked ~ .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

/* ----- CONTACT SECTION ----- */
.contact-section {
    background: linear-gradient(rgba(0, 123, 167, 0.05), rgba(0, 123, 167, 0.05)),
                #F4F4F4;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #007BA7, #BF4AA8);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    color: #777;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #007BA7;
    box-shadow: 0 0 0 2px rgba(0, 123, 167, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(to right, #007BA7, #BF4AA8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ----- FOOTER ----- */
.main-footer {
    background-color: #1C1C2D;
    color: white;
    padding: 4rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-title {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #BF4AA8;
}

.footer-address {
    margin-top: 1.5rem;
}

.footer-address p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-address i {
    color: #F6A623;
}

.footer-nav,
.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a,
.legal-nav a {
    color: #ddd;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-contact {
    color: #fff;
}

.footer-contact:hover {
    color: #F6A623;
}

.footer-nav a:hover,
.legal-nav a:hover {
    color: #F6A623;
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* ----- COOKIE POPUP ----- */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(150%);
    transition: transform 0.4s ease-in-out;
    max-width: 400px;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cookie-button {
    background: #007BA7;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-button:hover {
    background: #005a7d;
}

@media (max-width: 600px) {
    .cookie-popup {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* ----- LEGAL PAGES ----- */
.legal-page {
    padding: 4rem 0;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.legal-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1C1C2D;
    position: relative;
}

.legal-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #BF4AA8;
}

.legal-content h3 {
    margin-top: 2rem;
    color: #007BA7;
}

.legal-content p, 
.legal-content ul {
    margin-bottom: 1.2rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ----- THANK YOU PAGE ----- */
.thank-you-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 4rem 0;
    background-color: #F4F4F4;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.thank-you-icon {
    font-size: 4rem;
    color: #007BA7;
    margin-bottom: 1.5rem;
}

.thank-you-title {
    font-size: 2.2rem;
    color: #1C1C2D;
    margin-bottom: 1rem;
}

.thank-you-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background-color: #007BA7;
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.thank-you-button:hover {
    background-color: #005a7d;
    color: white;
}

/* ----- RESPONSIVE ADJUSTMENTS ----- */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .legal-container {
        padding: 2rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .benefit-card,
    .service-card {
        padding: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
} 