/* 
   Domain - Servicios de Contabilidad en España
   Color Palette:
   - Background: #f4f0ec (cream)
   - Accents: #ff725e (coral), #6d3d9c (purple)
   - Text: #1a1a1a (black)
   - Headings: #402c62 (deep purple)
*/

/* === Reset and Base Styles === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f4f0ec;
    --accent-1: #ff725e;
    --accent-2: #6d3d9c;
    --text-color: #1a1a1a;
    --heading-color: #402c62;
    --white: #ffffff;
    --light-gray: #f0f0f0;
    --gray: #cccccc;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

@font-face {
    font-family: 'System';
    font-style: normal;
    font-weight: 400;
    src: local(".SFNSText-Regular"), local(".HelveticaNeueDeskInterface-Regular"), local(".LucidaGrandeUI"), local("Segoe UI"), local("Ubuntu"), local("Roboto-Regular"), local("DroidSans"), local("Tahoma");
}

body {
    font-family: 'System', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-1);
    margin: 1rem auto;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--accent-1);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-2);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-2);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--accent-1);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-2);
    color: var(--accent-2);
}

.btn-outline:hover {
    background-color: var(--accent-2);
    color: var(--white);
    transform: translateY(-2px);
}

/* === Header === */
header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-transform: lowercase;
}

.logo a:hover {
    color: var(--accent-1);
}

.menu {
    display: flex;
    align-items: center;
}

.menu li {
    margin-left: 1.5rem;
}

.menu li a {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.menu li a:hover {
    color: var(--accent-1);
}

/* Mobile menu */
#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    position: relative;
    width: 30px;
    height: 24px;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    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: 10px;
}

.menu-icon span:nth-child(3) {
    top: 20px;
}

/* === Hero Section === */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(64, 44, 98, 0.8), rgba(109, 61, 156, 0.8)), url('../img/hSjDz0.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInLeft 1.2s ease;
}

.hero .btn {
    animation: fadeIn 1.5s ease;
}

/* === About Section === */
.about {
    background-color: var(--white);
}

.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: var(--transition);
}

.about-image:hover {
    transform: translateY(-5px);
}

/* === Features Section === */
.features {
    background-color: var(--bg-color);
}

.features-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 100%;
    max-width: 350px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-2);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--accent-1);
    transform: rotateY(180deg);
}

/* === Services Section === */
.services {
    background-color: var(--white);
}

.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-top: 0;
}

/* === How We Work Section === */
.how-we-work {
    background-color: var(--bg-color);
}

.steps-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--accent-2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: var(--transition);
}

.step:hover .step-number {
    background-color: var(--accent-1);
    transform: scale(1.1);
}

.step-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Add connecting lines between steps */
@media (min-width: 768px) {
    .steps-wrapper:before {
        content: '';
        position: absolute;
        top: 30px;
        left: 20%;
        right: 20%;
        height: 2px;
        background-color: var(--accent-2);
        z-index: 0;
    }
}

/* === Reviews Section === */
.reviews {
    background-color: var(--white);
}

.reviews-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.review-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 100%;
    max-width: 350px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.review-card:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent-1);
    opacity: 0.2;
    line-height: 1;
}

.review-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* === Form Section === */
.contact-form {
    background-color: var(--bg-color);
}

.form-wrapper {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 61, 156, 0.2);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 4px;
}

.form-check-label {
    font-size: 0.9rem;
}

.errors {
    color: var(--accent-1);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* === FAQ Section === */
.faq {
    background-color: var(--white);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.accordion-header:hover {
    background-color: rgba(109, 61, 156, 0.1);
}

.accordion-header a {
    display: block;
    color: var(--heading-color);
    text-decoration: none;
    width: 100%;
    position: relative;
    padding-right: 30px;
}

.accordion-header a:after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-2);
    transition: var(--transition);
}

.accordion-item.active .accordion-header a:after {
    content: '-';
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
    padding: 1rem;
    border-top: 1px solid var(--gray);
}

.accordion-item.active .accordion-header {
    border-bottom-color: var(--gray);
}

/* === Footer === */
footer {
    background-color: var(--heading-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.footer-logo p {
    max-width: 300px;
}

.footer-contact,
.footer-legal {
    min-width: 200px;
}

.footer-contact h3,
.footer-legal h3 {
    color: var(--white);
}

.footer-contact p,
.footer-contact a {
    color: var(--white);
}

.footer-legal ul li {
    margin-bottom: 0.5rem;
}

.footer-legal a {
    color: var(--white);
}

.footer-legal a:hover {
    color: var(--accent-1);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--white);
}

/* === Cookie Popup === */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    transition: bottom 0.5s ease;
    z-index: 1000;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

/* === Legal Pages === */
.legal-page {
    padding: 2rem 0;
}

.legal-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.legal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.legal-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-card h3 {
    border-bottom: 2px solid var(--accent-1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* === Thank You Page === */
.thank-you {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 0;
    width: 100%;
}

.thank-you .container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.thank-you-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    border: 2px solid var(--accent-2);
    position: relative;
}

.thank-you-content:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--accent-1);
    border-radius: var(--border-radius);
    opacity: 0.5;
    pointer-events: none;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent-2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.thank-you h2 {
    margin-bottom: 1.5rem;
}

.thank-you p {
    margin-bottom: 1rem;
}

.thank-you .btn {
    margin-top: 2rem;
}

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

.slide-in-left {
    animation: slideInLeft 1s ease;
}

.slide-in-right {
    animation: slideInRight 1s ease;
}

.slide-in-up {
    animation: slideInUp 1s ease;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    
    .menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .menu li a {
        display: block;
        padding: 0.5rem 1rem;
    }
    
    .menu-icon {
        display: block;
    }
    
    #menu-toggle:checked ~ .menu {
        display: flex;
    }
    
    #menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        top: 10px;
        transform: rotate(135deg);
    }
    
    #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        top: 10px;
        transform: rotate(-135deg);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-wrapper {
        flex-direction: column;
    }
} 

.form-wrapper .thank-you-content {
    text-align: center;
    padding: 2rem 0;
    background-color: rgba(109, 61, 156, 0.1);
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.form-wrapper .thank-you-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    animation: fadeIn 1s ease;
} 