/* 
* Domain - Servicios de Contabilidad en España
* Colores principales:
* - Fondo principal: #006E7F (biruzovo)
* - Acento: #F8B400 (amarillo)
* - Fondo secundario: #FDEEDC (crema)
* - Texto: #333333 (gris oscuro)
* - Botones: #FF6B6B (coral) / hover: #E63946 (rojo)
*/

/* Reset y bases */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #FDEEDC;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #006E7F;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #F8B400;
    margin: 1rem auto;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #006E7F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #F8B400;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Grid System (12 columns) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

/* Responsive Columns */
.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FF6B6B;
    color: white;
    border: none;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #E63946;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #FF6B6B;
}

.btn-secondary {
    background-color: #006E7F;
}

.btn-secondary:hover {
    background-color: #005a68;
}

.btn-nav {
    background-color: #F8B400;
    color: #006E7F;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background-color: #e8a800;
    color: #006E7F;
}

.btn-cookie {
    background-color: #F8B400;
    color: #006E7F;
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Header */
.site-header {
    background-color: #006E7F;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #F8B400;
    font-weight: 700;
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: #FDEEDC;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #F8B400;
}

/* Mobile Menu Toggle */
.mobile-menu-form {
    margin: 0;
    padding: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FDEEDC;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.open span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background-color: #006E7F;
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%23F8B400" fill-opacity="0.1" d="M0,0 L100,0 L100,20 Q50,40 0,20 Z" /></svg>') no-repeat bottom center;
    background-size: 100% 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    color: #FDEEDC;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero-content p {
    color: #FDEEDC;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* About Section */
.about-section {
    background-color: #FDEEDC;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-advantages {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.advantage-item {
    background-color: white;
    border-radius: 20px;
    padding: 25px;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    margin-bottom: 15px;
}

.advantage-icon img {
    width: 50px;
    height: 50px;
}

/* Services Section */
.services-section {
    background-color: #006E7F;
    color: #FDEEDC;
}

.services-section h2 {
    color: #FDEEDC;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    border-radius: 20px;
    padding: 0;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #333333;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.service-card h3 {
    color: #006E7F;
    margin: 20px 30px 15px;
}

.service-card p {
    padding: 0 30px;
}

.service-card ul {
    margin: 15px 30px;
    padding-left: 20px;
    list-style: disc;
}

.service-card ul li {
    margin-bottom: 8px;
}

.service-card .btn {
    margin: 20px 30px 30px;
    display: inline-block;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #FDEEDC;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: white;
    border-radius: 20px;
    padding: 25px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-content {
    position: relative;
    padding: 20px 0;
}

.testimonial-content:before {
    content: '"';
    font-size: 5rem;
    color: #F8B400;
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.testimonial-author h4 {
    color: #006E7F;
    margin-bottom: 5px;
}

.testimonial-author p {
    font-style: italic;
    color: #666;
}

/* Contact Form Section */
.contact-section {
    background-color: #006E7F;
    color: #FDEEDC;
}

.contact-section h2 {
    color: #FDEEDC;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: #333333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #006E7F;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 4px;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* FAQ Section */
.faq-section {
    background-color: #FDEEDC;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background-color: white;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-form {
    margin: 0;
    padding: 0;
}

.faq-question {
    padding: 0;
}

.faq-toggle-button {
    width: 100%;
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    border: none;
    text-align: left;
}

.faq-toggle-button h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: #006E7F;
    flex: 1;
}

.faq-toggle {
    color: #F8B400;
    font-size: 24px;
    font-weight: bold;
    margin-left: 15px;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.show {
    padding: 0 30px 20px;
    max-height: 1000px;
}

/* Process Section */
.process-section {
    background-color: #006E7F;
    color: #FDEEDC;
}

.process-section h2 {
    color: #FDEEDC;
}

.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    color: #333333;
    position: relative;
}

.step-number {
    background-color: #F8B400;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.process-step h3 {
    color: #006E7F;
}

/* Gallery Section */
.gallery-section {
    background-color: #FDEEDC;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Location Section */
.location-section {
    background-color: #006E7F;
    color: #FDEEDC;
}

.location-section h2 {
    color: #FDEEDC;
}

.location-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 350px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.location-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background-color: white;
    color: #333333;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-info h3 {
    color: #006E7F;
    margin-bottom: 20px;
}

.contact-info ul li {
    margin-bottom: 15px;
}

.contact-info ul li a {
    color: #006E7F;
    transition: color 0.3s;
}

.contact-info ul li a:hover {
    color: #F8B400;
}

/* Footer */
.site-footer {
    background-color: #006E7F;
    color: #FDEEDC;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    color: #F8B400;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-list li,
.legal-links li {
    margin-bottom: 10px;
}

.legal-links a {
    color: #FDEEDC;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #F8B400;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(253, 238, 220, 0.2);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #006E7F;
    color: #FDEEDC;
    padding: 15px 0;
    z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-content a {
    color: #F8B400;
    text-decoration: underline;
}

/* Policy Pages Style */
.policy-page {
    background-color: #FDEEDC;
    padding: 80px 0;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #006E7F;
}

.policy-container h1 {
    color: #006E7F;
    text-align: center;
    margin-bottom: 30px;
}

.policy-container h2 {
    font-size: 1.5rem;
    margin-top: 40px;
}

.policy-container h3 {
    font-size: 1.2rem;
    margin-top: 25px;
}

.policy-container ul,
.policy-container ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.policy-container ul li,
.policy-container ol li {
    margin-bottom: 10px;
}

.policy-container ul {
    list-style: disc;
}

.policy-container ol {
    list-style: decimal;
}

/* Thank You Page */
.thanks-page {
    background-color: #FDEEDC;
    padding: 100px 0;
    text-align: center;
}

.thanks-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.thanks-icon {
    margin-bottom: 30px;
}

.thanks-icon img {
    width: 100px;
    height: 100px;
}

.thanks-container h1 {
    color: #006E7F;
    margin-bottom: 20px;
}

.thanks-container .btn {
    margin-top: 30px;
}

/* Animations and Transitions */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .service-card,
    .process-step {
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #006E7F;
        max-height: 0;
        overflow: hidden;
        transition: all 0.5s ease;
    }
    
    .main-nav.open {
        max-height: 500px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav ul li {
        margin: 10px 0;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .service-card,
    .testimonial-card,
    .process-step {
        min-width: 100%;
    }
    
    .about-text,
    .about-advantages {
        flex: 100%;
    }
    
    .footer-column {
        flex: 100%;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .policy-container {
        padding: 30px 20px;
    }
}