/* 
 * FinAuditor España - Main Stylesheet
 * Colors:
 * - Deep indigo: #2E294E
 * - Bright coral: #FF6B6C
 * - Lime: #D6FF79
 * - Concrete gray: #B2B1B9
 */

/* === Reset and Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    padding-top: 80px; /* Space for fixed header */
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #2E294E;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF6B6C;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #2E294E;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #FF6B6C, #D6FF79);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FF6B6C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #2E294E;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #FF6B6C;
    font-size: 1.1rem;
}

.btn-submit {
    background: linear-gradient(to right, #FF6B6C, #D6FF79);
    color: #2E294E;
    font-size: 1.2rem;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
}

.btn-submit:hover {
    background: linear-gradient(to right, #D6FF79, #FF6B6C);
    transform: scale(1.02);
}

.btn-nav {
    background-color: #2E294E;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: #FF6B6C;
    color: white;
}

.btn-cookie {
    background-color: #D6FF79;
    color: #2E294E;
    padding: 8px 16px;
}

/* === Header === */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo-svg {
    height: auto;
    width: 180px;
    transition: transform 0.3s ease;
}

.logo-svg:hover {
    transform: scale(1.05);
}

/* Navigation */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.menu-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2E294E;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a {
    display: inline-block;
    padding: 5px;
    position: relative;
    font-weight: 500;
}

.nav-list a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #FF6B6C;
    transition: width 0.3s ease;
}

.nav-list a:not(.btn-nav):hover::after {
    width: 100%;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #FF6B6C, #D6FF79);
    color: white;
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/oYTVAL.jpg) center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-content .slogan {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* === About Section === */
.about-section {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* === Benefits Section === */
.benefits-section {
    background: linear-gradient(135deg, #2E294E, #555);
    color: white;
}

.benefits-section h2 {
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: #FF6B6C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon .icon {
    width: 40px;
    height: 40px;
    fill: white;
}

.benefit-card h3 {
    color: #D6FF79;
}

/* === Testimonials Section === */
.testimonials-section {
    background-color: #f9f9f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: #FF6B6C;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-author strong {
    color: #2E294E;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #B2B1B9;
}

/* === Process Section === */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
}

.process-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.process-card:hover .process-image img {
    transform: scale(1.1);
}

.process-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B6C, #D6FF79);
    color: #2E294E;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
}

/* === Contact Form Section === */
.contact-section {
    background: linear-gradient(135deg, #FF6B6C, #D6FF79);
    color: #2E294E;
}

.contact-section h2 {
    color: #2E294E;
}

.form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Estilos para mensajes de error del formulario */
.form-errors {
    background-color: #fff1f1;
    border-left: 4px solid #FF6B6C;
    margin-bottom: 2rem;
    padding: 1rem;
    color: #b32e2e;
    border-radius: 4px;
}

.form-errors ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
    padding: 0;
}

.form-errors li {
    margin-bottom: 0.5rem;
}

.contact-form {
    display: grid;
    grid-gap: 20px;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2E294E;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #B2B1B9;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus {
    border-color: #FF6B6C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 108, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #FF6B6C;
    margin-top: 3px;
}

.checkbox-item label {
    margin: 0;
    font-size: 0.9rem;
}

.checkbox-item a {
    color: #FF6B6C;
    text-decoration: underline;
}

/* === Contact Info Section === */
.info-contact-section {
    background-color: #f9f9f9;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item .icon {
    width: 24px;
    height: 24px;
    fill: #FF6B6C;
}

.map-container {
    height: 100%;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* === Footer === */
.site-footer {
    background-color: #2E294E;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: white;
}

.footer-info p {
    color: #B2B1B9;
    max-width: 400px;
}

.footer-contact {
    margin-top: 1.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.link-group h4 {
    color: #D6FF79;
    margin-bottom: 1.5rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.7rem;
}

.link-group a {
    color: #B2B1B9;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: #FF6B6C;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(178, 177, 185, 0.2);
    padding-top: 2rem;
    color: #B2B1B9;
    font-size: 0.9rem;
}

/* === Cookie Popup === */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background-color: #2E294E;
    color: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.5s ease;
    z-index: 9999;
    opacity: 0;
}

.cookie-popup.show {
    bottom: 0;
    opacity: 1;
}

.cookie-popup p {
    margin: 0;
    padding-right: 20px;
}

/* === Icons === */
.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* === Responsive Styles === */

/* Large devices (laptops/desktops) */
@media (max-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* Medium devices (tablets) */
@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }
    
    .logo-svg {
        width: 160px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-info p {
        max-width: 100%;
    }
}

/* Small devices (landscape phones) */
@media (max-width: 768px) {
    body {
        padding-top: 4rem;
    }
    h3{
        font-size: 1.3rem !important;
    }
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 5rem 0 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .slogan {
        font-size: 1.2rem;
    }
    
    /* Mobile Menu */
    .menu-icon {
        display: block;
        z-index: 2000;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        text-align: center;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
        z-index: 1000;
    }
    
    .nav-list li {
        margin: 0;
    }
    
    .nav-list a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .menu-toggle:checked ~ .main-nav .nav-list {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .menu-toggle:checked ~ .menu-icon .menu-line:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked ~ .menu-icon .menu-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon .menu-line:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .services-grid,
    .benefits-grid,
    .testimonials-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .logo-svg {
        width: 140px;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    body {
        padding-top: 3.5rem;
    }
    
    .site-header {
        padding: 0.3rem 0;
    }
    
    .logo-svg {
        width: 120px;
    }
    
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .slogan {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .contact-form {
        grid-gap: 10px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        flex-direction: column;
        padding: 10px;
    }
    
    .cookie-popup p {
        margin-bottom: 10px;
        padding-right: 0;
    }
} 