/* 
* Contabilidad Clara - Main Stylesheet
* Colors:
* - Primary: #264653 (dark teal)
* - Accent: #f4a261 (coral)
* - Additional: #e76f51 (terracotta), #2a9d8f (emerald), #f1faee (light beige)
* - Background: gradient from #f1faee to #2a9d8f
*/

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #264653;
    --accent: #f4a261;
    --terracotta: #e76f51;
    --emerald: #2a9d8f;
    --light-beige: #f1faee;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #eee;
    --white: #fff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background: linear-gradient(135deg, var(--light-beige) 0%, var(--emerald) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    position: absolute;
    bottom: -10px;
    left: 0;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--emerald);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: var(--radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--terracotta);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background-color: var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-list li {
    margin-left: 25px;
}

.nav-list a {
    color: var(--primary);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.5px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary);
    color: var(--white);
}

.btn-nav:hover {
    background-color: var(--emerald);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 15rem 0 14rem;
    text-align: center;
    position: relative;
    background: linear-gradient(to right, rgba(38, 70, 83, 0.8), rgba(42, 157, 143, 0.8)), url('img/UXv24J.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom right, transparent 49.5%, var(--white) 50%);
}

.hero h1, .hero h2, .hero p {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero h2::after {
    display: none;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.hero .btn {
    font-size: 1.125rem;
    padding: 15px 30px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--white);
    position: relative;
}

.about h2 {
    text-align: center;
}

.about h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.about p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--light-beige);
    position: relative;
}

.services h2 {
    text-align: center;
}

.services h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background-color: var(--white);
    position: relative;
}

.benefits h2 {
    text-align: center;
}

.benefits h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2.5rem;
}

.benefit-item {
    background-color: var(--light-beige);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-left-color: var(--emerald);
}

.benefit-item h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form {
    background-color: var(--light-beige);
    position: relative;
}

.contact-form h2 {
    text-align: center;
}

.contact-form h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Error container for form errors */
.error-container {
    background-color: rgba(231, 111, 81, 0.1);
    border-left: 4px solid var(--terracotta);
    border-radius: var(--radius);
    padding: 15px 20px;
    margin-bottom: 25px;
    color: var(--terracotta);
}

.error-container ul {
    margin: 0;
    padding-left: 20px;
}

.error-container li {
    margin-bottom: 5px;
}

.unique-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    border: 3px solid var(--emerald);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.unique-form::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    bottom: 15px;
    left: 15px;
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    pointer-events: none;
    z-index: -1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--white); /* Non-transparent form fields */
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--emerald);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.95rem;
    line-height: 1.4;
}

.unique-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--white);
    position: relative;
}

.testimonials h2 {
    text-align: center;
}

.testimonials h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.testimonial {
    background-color: var(--light-beige);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(42, 157, 143, 0.2);
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.client-name {
    font-weight: 600;
    color: var(--primary);
    text-align: right;
    margin-bottom: 0;
}

/* ===== FAQ SECTION ===== */
.faq {
    background-color: var(--light-beige);
    position: relative;
}

.faq h2 {
    text-align: center;
}

.faq h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.accordion {
    max-width: 800px;
    margin: 3rem auto 0;
}

.accordion-item {
    margin-bottom: 20px;
    border-radius: var(--radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
    color: var(--primary);
    font-size: 1.2rem;
    padding-right: 40px;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(241, 250, 238, 0.5);
}

.accordion-header::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent);
}

.accordion-item.active .accordion-header::after {
    content: '-';
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 20px 20px;
    max-height: 200px;
}

/* ===== CONTACT INFO SECTION ===== */
.contact-info {
    background-color: var(--white);
    position: relative;
}

.contact-info h2 {
    text-align: center;
}

.contact-info h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 20px;
}

.contact-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-item p {
    margin-bottom: 5px;
}

.map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top right, var(--primary) 49.5%, transparent 50%);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer address {
    font-style: normal;
}

.footer address p {
    margin-bottom: 8px;
}

.footer address a {
    color: rgba(255, 255, 255, 0.8);
}

.footer address a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-gray);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content p {
    color: var(--white);
    margin: 0 20px 0 0;
    flex: 1;
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

.btn-cookie {
    background-color: var(--accent);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-cookie:hover {
    background-color: var(--terracotta);
    transform: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3.5rem 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    .nav-list.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-list li {
        margin: 15px 0;
    }
    
    .nav-list li:first-child {
        margin-top: 0;
    }
    
    .nav-list li:last-child {
        margin-bottom: 0;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin: 0 0 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero h2 {
        font-size: 1.25rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .unique-form {
        padding: 25px;
    }
    
    .unique-form::before {
        top: 10px;
        right: 10px;
        bottom: 10px;
        left: 10px;
    }
    
    .services-grid,
    .benefits-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
} 