/* Main Styles for FinAudit España Website */
:root {
    --background-color: #ffe6e6;
    --text-color: #2e2e2e;
    --accent-color-1: #ff4b5c;
    --accent-color-2: #ffb400;
    --secondary-bg: #f5f7fa;
    --transition: all 0.3s ease;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--accent-color-1);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color-2);
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-align: center;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 75, 92, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 75, 92, 0.4);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color-1);
    color: var(--accent-color-1);
}

.btn-secondary:hover {
    background-color: var(--accent-color-1);
    color: white;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 230, 230, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    backdrop-filter: blur(5px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav .menu {
    display: flex;
    list-style: none;
}

.main-nav .menu li {
    margin-left: 25px;
}

.main-nav .menu a {
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.main-nav .menu a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    transition: var(--transition);
}

.main-nav .menu a:hover:before {
    width: 100%;
}

.main-nav .menu a.btn-primary {
    padding: 10px 20px;
    border-radius: 30px;
}

.main-nav .menu a.btn-primary:before {
    display: none;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--accent-color-1);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 9px;
}

.menu-icon span:nth-child(3) {
    top: 18px;
}

/* Hero Section */
.hero {
    background-color: var(--background-color);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background-image: url('../img/6PCL11.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 230, 230, 0.85);
    z-index: 1;
}

.hero:after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 180, 0, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    margin-bottom: 25px;
    font-size: 3.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* About Section */
.about {
    background-color: var(--secondary-bg);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h2 {
    text-align: left;
}

.about-text h2:after {
    left: 0;
    transform: none;
}

/* Services Section */
.services {
    background-color: var(--background-color);
    position: relative;
    background-image: url('../img/6xZbVl.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 230, 230, 0.9);
    z-index: 1;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--secondary-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-content {
    padding: 0 30px 30px;
    text-align: center;
}

.service-content h3 {
    margin-bottom: 15px;
}

/* Advantages Section */
.advantages {
    background-color: var(--secondary-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.advantage-icon svg {
    width: 35px;
    height: 35px;
}

/* Process Section */
.process {
    background-color: var(--background-color);
}

.process-steps {
    margin-top: 50px;
    position: relative;
}

.process-steps:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    z-index: 1;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(255, 75, 92, 0.3);
}

.step-content {
    background-color: var(--secondary-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--secondary-bg);
    position: relative;
    overflow: hidden;
}

.testimonials:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 75, 92, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.testimonials-container {
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-meta h4 {
    margin-bottom: 5px;
}

.testimonial-meta p {
    margin-bottom: 0;
    color: var(--accent-color-1);
}

.testimonial-stars {
    color: var(--accent-color-2);
    margin-bottom: 10px;
}

.testimonial-text {
    position: relative;
    padding-left: 25px;
}

.testimonial-text:before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 40px;
    color: var(--accent-color-1);
    opacity: 0.3;
    font-family: serif;
}

/* Pricing Section */
.pricing {
    background-color: var(--background-color);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
}

.pricing-body {
    padding: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 25px;
}

.pricing-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color-1);
    font-weight: bold;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.pricing-period {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Contact Form */
.contact {
    background-color: var(--secondary-bg);
    position: relative;
    background-image: url('../img/07r7vz.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 247, 250, 0.9);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact-container {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    padding-right: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-details li svg {
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color-1);
    box-shadow: 0 0 0 3px rgba(255, 75, 92, 0.1);
    outline: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check input {
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer */
.site-footer {
    background-color: #272727;
    color: var(--secondary-bg);
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about p {
    opacity: 0.7;
    margin-top: 20px;
}

.footer-contact h4,
.footer-legal h4 {
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h4:after,
.footer-legal h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
}

.footer-contact ul,
.footer-legal ul {
    list-style: none;
}

.footer-contact ul li,
.footer-legal ul li {
    margin-bottom: 15px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
}

.footer-contact ul li svg {
    margin-right: 10px;
    flex-shrink: 0;
}

.footer-legal ul li a {
    color: var(--secondary-bg);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-legal ul li a:hover {
    opacity: 1;
    color: var(--accent-color-2);
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 600px;
    width: 90%;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content h4 {
    margin-bottom: 10px;
}

.cookie-content p {
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .process-steps:before {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-icon {
        display: block;
        z-index: 1001;
    }
    
    .main-nav .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav .menu li {
        margin: 15px 0;
    }
    
    .menu-toggle:checked ~ .menu {
        right: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix for horizontal scrolling */
    .services-grid, 
    .advantages-grid,
    .process-grid,
    .testimonials-grid,
    .contact-container {
        width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Policy Pages Styles */
.policy-section {
    padding: 150px 0 80px;
}

.policy-content {
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

.policy-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.policy-content h2:after {
    left: 0;
    transform: none;
    width: 60px;
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content ul li {
    margin-bottom: 10px;
}

/* Fix for any potential overflow issues */
svg, img, video, canvas, iframe, embed, object {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Fix for any overflow in sections with grids */
.services-grid, 
.advantages-grid,
.process-grid,
.testimonials-grid,
.pricing-grid,
.contact-container {
    max-width: 100%;
}

/* Ensure mobile menu is fully contained */
@media (max-width: 768px) {
    .main-nav .menu {
        width: 80%;
        max-width: 300px;
    }
    
    .service-card, 
    .advantage-item, 
    .process-step, 
    .testimonial-card, 
    .pricing-card {
        max-width: 100%;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
} 