/* 
 * Main stylesheet for domain - Financial Audit Firm in Spain
 * Color Palette:
 * - Moon Indigo: #393E59 (dark sections)
 * - Mango Ice: #FFC482 (CTA buttons, highlights)
 * - Mist Clay: #E8E6E1 (backgrounds and inputs)
 * - Jade Opal: #5DB89C (animated separators and icons)
 * - Coral Night: #EF6C6C (hover states)
 */

/* Reset and Base Styles */
:root {
    --moon-indigo: #393E59;
    --mango-ice: #FFC482;
    --mist-clay: #E8E6E1;
    --jade-opal: #5DB89C;
    --coral-night: #EF6C6C;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #dddddd;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--moon-indigo);
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--jade-opal);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--coral-night);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--jade-opal);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--moon-indigo);
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--mango-ice);
    color: var(--moon-indigo);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 196, 130, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--coral-night);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(239, 108, 108, 0.4);
}

.service-link {
    display: inline-block;
    color: var(--moon-indigo);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.service-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--jade-opal);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.service-link:hover::after {
    width: 100%;
}

.service-link:hover {
    color: var(--jade-opal);
}

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--moon-indigo);
    text-transform: lowercase;
}

.logo span {
    color: var(--jade-opal);
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}

.main-nav li {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.main-nav a {
    color: var(--moon-indigo);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--jade-opal);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--moon-indigo);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 20px;
}

.mobile-menu li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--mist-clay);
    padding-bottom: 15px;
}

.mobile-menu li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mobile-menu a {
    color: var(--moon-indigo);
    font-weight: 500;
    display: block;
}

/* Hero Section */
.hero-section {
    background-color: var(--mist-clay);
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--white);
    clip-path: ellipse(50% 60px at 50% 60px);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--moon-indigo);
}

.values-list {
    list-style: none;
    margin-top: 1.5rem;
}

.values-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.icon-check {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--jade-opal);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.icon-check::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Services Section */
.services-section {
    background-color: var(--mist-clay);
    padding: 100px 0;
    position: relative;
}

.services-section::before,
.services-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100px;
    background-color: var(--white);
}

.services-section::before {
    top: -50px;
    clip-path: ellipse(50% 60px at 50% 0);
}

.services-section::after {
    bottom: -50px;
    clip-path: ellipse(50% 60px at 50% 60px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background-color: var(--mist-clay);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: var(--mist-clay);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background-color: var(--white);
}

.benefit-icon span {
    font-size: 35px;
    color: var(--jade-opal);
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.benefit-item p {
    color: var(--dark-gray);
}

/* Statistics Section */
.statistics-section {
    background-color: var(--moon-indigo);
    padding: 100px 0;
    position: relative;
    color: var(--white);
}

.statistics-section .section-title {
    color: var(--white);
}

.statistics-section .section-title::after {
    background-color: var(--mango-ice);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--mango-ice);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--mist-clay);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-container {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateX(50px);
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    background-color: var(--mist-clay);
    padding: 30px;
    border-radius: 10px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-details h4 {
    margin-bottom: 5px;
    color: var(--moon-indigo);
}

.author-details p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--dark-gray);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    background-color: var(--mist-clay);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--jade-opal);
    transform: scale(1.2);
}

/* FAQ Section */
.faq-section {
    background-color: var(--mist-clay);
    padding: 100px 0;
    position: relative;
}

.faq-section::before,
.faq-section::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100px;
    background-color: var(--white);
}

.faq-section::before {
    top: -50px;
    clip-path: ellipse(50% 60px at 50% 0);
}

.faq-section::after {
    bottom: -50px;
    clip-path: ellipse(50% 60px at 50% 60px);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--moon-indigo);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 20px 20px;
    color: var(--dark-gray);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: grid;
    grid-gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--moon-indigo);
}

.input-container {
    position: relative;
}

.input-container input,
.select-container select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    background-color: var(--mist-clay);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-container input:focus,
.select-container select:focus {
    outline: none;
    border-color: var(--jade-opal);
    background-color: var(--white);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--jade-opal);
    transition: width 0.3s ease;
}

.input-container input:focus ~ .focus-border,
.select-container select:focus ~ .focus-border {
    width: 100%;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-container label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.submit-button {
    background-color: var(--mango-ice);
    color: var(--moon-indigo);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--jade-opal);
    color: var(--white);
}

/* Policy Pages */
.policy-section {
    padding-top: 160px;
    padding-bottom: 80px;
}

.policy-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-date {
    color: var(--dark-gray);
    margin-bottom: 20px;
    font-style: italic;
}

.policy-content h2 {
    color: var(--moon-indigo);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.policy-content h3 {
    color: var(--moon-indigo);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.policy-content p, 
.policy-content ul, 
.policy-content ol {
    margin-bottom: 15px;
}

.policy-content ul, 
.policy-content ol {
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 5px;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cookies-table th, 
.cookies-table td {
    padding: 10px;
    border: 1px solid var(--medium-gray);
    text-align: left;
}

.cookies-table th {
    background-color: var(--mist-clay);
}

/* Thank You Page */
.thanks-section {
    padding-top: 160px;
    padding-bottom: 80px;
}

.thanks-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.thanks-icon {
    margin-bottom: 30px;
}

.thanks-title {
    color: var(--jade-opal);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.thanks-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.thanks-details {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background-color: var(--mist-clay);
    border-radius: 10px;
}

.thanks-contact {
    margin-bottom: 30px;
}

.return-button {
    display: inline-block;
    background-color: var(--mango-ice);
    color: var(--moon-indigo);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.return-button:hover {
    background-color: var(--jade-opal);
    color: var(--white);
}

/* Footer */
.site-footer {
    background-color: var(--moon-indigo);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--mango-ice);
}

.footer-description {
    color: var(--mist-clay);
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--mist-clay);
}

.footer-contact-item i {
    margin-right: 10px;
    color: var(--mango-ice);
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--mango-ice);
    bottom: 0;
    left: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--mist-clay);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--mango-ice);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--mist-clay);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--moon-indigo);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    margin-right: 20px;
    margin-bottom: 0;
}

.cookie-content a {
    color: var(--mango-ice);
}

.cookie-button {
    background-color: var(--mango-ice);
    color: var(--moon-indigo);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-button:hover {
    background-color: var(--jade-opal);
    color: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* CSS Animation for Statistics Counter */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-item {
    animation: countUp 1s forwards;
}

/* CSS Animation for Testimonial Slider */
@keyframes slideIn {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.testimonial-slider {
    animation: fadeIn 1s ease;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-text {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 130px 0 80px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-section,
    .services-section,
    .benefits-section,
    .statistics-section,
    .testimonials-section,
    .faq-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .header-container {
        height: 70px;
    }
    
    .mobile-menu {
        top: 70px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-container {
        gap: 30px;
    }
}