/* 
* Contabilidad Website - Main Stylesheet
* Custom styling for accounting services website in Spain
* Colors: #FFF5EC (background), #6E2F8C (accent), #FF9A8B (secondary), #141414 (text), #FFCC00 (buttons)
*/

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #141414;
    background-color: #FFF5EC;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: #6E2F8C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF9A8B;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
    position: relative;
}

main {
    flex: 1;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #141414;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.6rem;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    padding-bottom: 1.5rem;
    color: #141414;
    font-weight: 800;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background: linear-gradient(to right, #6E2F8C, #FF9A8B);
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    background-color: #FFCC00;
    color: #141414;
    font-weight: 700;
    padding: 1.2rem 3rem;
    border-radius: 5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #E6B800;
    color: #141414;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-cookie {
    background-color: #6E2F8C;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-cookie:hover {
    background-color: #5a2573;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    background-color: rgba(255, 245, 236, 0.95);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: #141414;
}

.logo span {
    margin-left: 1rem;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 3rem;
}

.nav-list a {
    color: #141414;
    font-weight: 600;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6E2F8C;
    transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: #141414;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #FFF5EC;
    padding: 2rem;
    box-shadow: 0 4px 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-nav-list li {
    margin-bottom: 1.5rem;
}

.mobile-nav-list a {
    font-size: 1.8rem;
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 18rem 0 12rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('./img/ERLVXa.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    color: white;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: white;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    font-size: 1.8rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background-color: #FFF5EC;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 2rem;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.benefit-item {
    padding: 3rem;
    border-radius: 10px;
    background-color: #FFF5EC;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(110, 47, 140, 0.1);
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: -1;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    background-color: #FFF5EC;
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 5rem;
    color: rgba(110, 47, 140, 0.1);
    position: absolute;
    top: -2rem;
    left: -1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1.5rem;
}

.author-details h4 {
    margin-bottom: 0.5rem;
}

.author-details p {
    font-size: 1.4rem;
    color: #6E2F8C;
    margin-bottom: 0;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    background-color: #f9f9f9;
    padding: 2rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 1.6rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: #6E2F8C;
    color: white;
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 2rem;
    background-color: white;
    border-top: 1px solid #e9e9e9;
}

form {
    margin: 0;
    padding: 0;
}

button:focus {
    outline: none;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background-color: #FFF5EC;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

.contact-info {
    padding: 3rem;
    background-color: #6E2F8C;
    color: white;
    border-radius: 10px;
    height: fit-content;
}

.contact-info h3 {
    color: white;
    margin-bottom: 2.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-info i {
    margin-right: 1.5rem;
    font-size: 2rem;
}

.contact-info-image {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.contact-form-container {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: grid;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    font-size: 1.6rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6E2F8C;
}

.checkbox-group {
    display: grid;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.checkbox-text {
    font-size: 1.6rem;
    line-height: 1.4;
}

.terms-label {
    font-size: 1.4rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: #141414;
    color: #f9f9f9;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo span {
    font-size: 2rem;
    font-weight: 700;
    margin-left: 1rem;
    color: white;
}

.footer-description {
    opacity: 0.7;
}

.footer-contact,
.footer-links {
    margin-top: 1rem;
}

.footer-contact h3,
.footer-links h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #f9f9f9;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 1.4rem;
    opacity: 0.7;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-content a {
    color: #FFCC00;
}

/* ===== POLICY PAGES ===== */
.policy-section {
    padding: 12rem 0 8rem;
}

.policy-section h1 {
    text-align: center;
    margin-bottom: 4rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 4rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.policy-last-update {
    color: #6E2F8C;
    font-style: italic;
    margin-bottom: 3rem;
}

.policy-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 2.4rem;
}

.policy-content ul {
    padding-left: 2rem;
    list-style-type: disc;
    margin-bottom: 2rem;
}

.policy-content ul li {
    margin-bottom: 1rem;
}

/* ===== THANKS PAGE ===== */
.thanks-section {
    padding: 16rem 0 12rem;
    text-align: center;
}

.thanks-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 4rem;
    border-radius: 10px;
    border: 2px solid #6E2F8C;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thanks-icon {
    margin-bottom: 3rem;
    display: inline-block;
}

.thanks-actions {
    margin-top: 4rem;
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.animate-fade-in-delay-1 {
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease 0.9s forwards;
}

.animate-fade-in-delay-3 {
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.animate-scale {
    transform: scale(0.8);
    opacity: 0;
    animation: scaleIn 0.5s ease 0.5s forwards;
}

.animate-scale-delay {
    transform: scale(0.8);
    opacity: 0;
    animation: scaleIn 0.5s ease 1s forwards;
}

.animate-slide-up {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-up-delay-1 {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.8s ease 0.3s forwards;
}

.animate-slide-up-delay-2 {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.8s ease 0.6s forwards;
}

.animate-on-scroll,
.animate-scale-on-scroll {
    opacity: 1;
    transition: all 1s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
}

.animate-scale-on-scroll {
    transform: scale(0.95);
}

.animate-scale-on-scroll.visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
    html {
        font-size: 55%;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 50%;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .services-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .policy-content {
        padding: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 6rem 0;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 15rem 0 8rem;
    }
    
    .hero-content h1 {
        font-size: 3.4rem;
    }
    
    .thanks-section {
        padding: 12rem 0 8rem;
    }
}

/* ===== ICON STYLES (Font replacement) ===== */
.icon-location::before {
    content: '📍';
    margin-right: 0.5rem;
}

.icon-phone::before {
    content: '📞';
    margin-right: 0.5rem;
}

.icon-email::before {
    content: '📧';
    margin-right: 0.5rem;
} 