/* 
 * Servicios de Auditoría Financiera - Main Stylesheet
 * Colors:
 * - Primary: #3F00FF (Electric Ultramarine)
 * - Accent: #FF6F61 (Coral Pink)
 * - Background: #F2F2F2 (Pearl Gray)
 * - Text: #333333 (Coal)
 */

/* --- Reset & Base Styles --- */
:root {
    --primary: #3F00FF;
    --accent: #FF6F61;
    --bg: #F2F2F2;
    --text: #333333;
    --light: #FFFFFF;
    --dark: #222222;
    --gray: #888888;
    --shadow: rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

section[id] {
    scroll-margin-top: 80px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.btn-contacto {
    background-color: var(--primary);
    color: var(--light) !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-contacto:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    position: relative;
    z-index: 2000;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.menu-icon span:nth-child(1) {
    top: 0;
    background: var(--primary);
}

.menu-icon span:nth-child(2) {
    top: 9px;
}

.menu-icon span:nth-child(3) {
    top: 18px;
    background: var(--primary);

}

/* --- Main Sections --- */
section {
    padding: 80px 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('./img/brJQD.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--light);
}
.hero-buttons{
    display: flex;
    justify-content: center;
    
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(63, 0, 255, 0.7), rgba(255, 111, 97, 0.7));
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    color: var(--light);
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--light);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--light);
    color: var(--primary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px var(--shadow);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Advantages Section */
.advantages {
    background-color: var(--light);
}

.advantage-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--light);
    font-size: 2rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 1rem;
}

/* Reviews Section */
.reviews {
    background-color: var(--light);
}

.review-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.2;
}

.review-rating {
    color: gold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.reviewer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 700;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.reviewer-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* How We Work Section */
.work-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: process-counter;
}

.work-step {
    text-align: center;
    position: relative;
}

.work-step::before {
    counter-increment: process-counter;
    content: counter(process-counter);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
}

.work-step::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 100%;
    width: 100%;
    height: 2px;
    background: var(--accent);
    z-index: 0;
}

.work-step:last-child::after {
    display: none;
}

.work-step h3 {
    margin-top: 2rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--light);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    display: block;
}

.faq-question::after {
    content: '\002B';
    font-size: 1.5rem;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    transition: all 0.3s ease;
}

.faq-item input[type="checkbox"]:checked ~ .faq-question::after {
    content: '\2212';
    transform: translateY(-50%) rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 300px;
    padding: 0 20px 20px;
}

/* Contact Section */
.contact {
    background-color: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.form-container {
    background: var(--bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(63, 0, 255, 0.2);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

select.form-control option {
    background-color: var(--light);
    color: var(--text);
    padding: 10px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 6px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--gray);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    height: 100%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-info p {
    color: #aaa;
    margin-top: 1rem;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--accent);
}

.footer-contact a:hover {
    color: var(--light);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #aaa;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: var(--light);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: all 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    margin: 0;
    padding-right: 20px;
}

.cookie-content a {
    color: var(--accent);
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--light);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
}

.policy-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.policy-container h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.policy-container p {
    margin-bottom: 1.25rem;
}

.policy-container ul, .policy-container ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.policy-container li {
    margin-bottom: 0.5rem;
}

/* Thank You Page */
.thanks-container {
    text-align: center;
    padding: 80px 20px;
}

.thanks-icon {
    font-size: 5rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.thanks-container h1 {
    margin-bottom: 1rem;
}

.thanks-container p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Mobile Menu */
@media (max-width: 991px) {
    .menu-icon {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: var(--primary);
        z-index: 999;
        transition: all 0.3s ease;
        box-shadow: 5px 0 15px var(--shadow);
    }
    
    .menu-toggle:checked ~ nav {
        left: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        top: 9px;
        transform: rotate(-45deg);
    }
    
    nav ul {
        flex-direction: column;
        padding: 60px 20px;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    nav ul li a {
        color: var(--light);
        display: block;
        padding: 10px;
        font-weight: 500;
    }
    
    .btn-contacto {
        margin-top: 10px;
        text-align: center;
        background-color: var(--light);
        color: var(--primary) !important;
    }
    
  
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .advantage-cards,
    .services-grid,
    .review-cards {
        grid-template-columns: 1fr;
    }
    
    .work-process {
        grid-template-columns: 1fr;
    }
    
    .work-step::after {
        width: 2px;
        height: 50px;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
        padding-right: 0;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .advantage-cards,
    .services-grid,
    .review-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-process {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
}

.alert-error {
    background-color: #ffebeb;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
} 