/* 
 * ContaEspaña - Servicios Contables
 * Main Stylesheet
 * Color Palette:
 * - Background: #FFE7D1 (light orange)
 * - Accent: #6A0DAD (purple)
 * - Text: #333333 (dark gray)
 * - Buttons: #39FF14 (neon green) with #6A0DAD (purple) text
 * - Forms: #F5F5F5 (light gray) with #6A0DAD (purple) borders
 */

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #FFE7D1;
    --color-accent: #6A0DAD;
    --color-text: #333333;
    --color-button: #39FF14;
    --color-form-bg: #F5F5F5;
    --font-main: 'Montserrat', sans-serif;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

img, picture, video, iframe, table {
    max-width: 100% !important;
    height: auto;
}

/* Container para todas las secciones */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #9b4dca; /* Lighter purple on hover */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 20px;
}

section {
    padding: 80px 0;
}

ul {
    list-style: none;
}

/* ===== Animation Keyframes ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-accent);
    box-shadow: 0 4px 10px rgba(57, 255, 20, 0.3);
}

.btn-primary:hover {
    background-color: #50ff31; /* Slightly lighter green */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(57, 255, 20, 0.4);
    color: var(--color-accent);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 10px rgba(106, 13, 173, 0.3);
}

.btn-secondary:hover {
    background-color: #7d1ebe; /* Slightly lighter purple */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(106, 13, 173, 0.4);
    color: white;
}

/* ===== Header Styles ===== */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    max-width: 180px;
}

.logo a {
    display: block;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: scale(1.05);
}

.desktop-nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

.desktop-nav li a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

.desktop-nav li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.desktop-nav li a:not(.btn-primary):hover::after {
    width: 100%;
}

.desktop-nav li a.btn-primary {
    padding: 10px 20px;
}

.mobile-menu-toggle {
    display: none;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    background-color: white;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    padding: 60px 30px 30px;
    z-index: 999;
    animation: slideInRight 0.3s ease forwards;
}

.mobile-nav.active {
    display: block;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--color-accent);
    cursor: pointer;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav li a {
    font-size: 1.5rem;
    display: block;
    padding: 10px 0;
    color: var(--color-text);
    font-weight: 500;
}

.mobile-nav li a.btn-primary {
    margin-top: 20px;
    display: inline-block;
    text-align: center;
}

/* ===== Hero Section ===== */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(255, 231, 209, 0.8) 0%, rgba(255, 215, 181, 0.8) 100%), url('./img/Y3OcDU.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    animation: fadeIn 1s ease-out;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--color-accent);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-image {
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 13, 173, 0.05) 0%, rgba(255, 231, 209, 0) 70%);
    z-index: 1;
    animation: pulse 15s infinite;
}

/* ===== About Section ===== */
.about {
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    margin: 20px auto 0;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    order: 1;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-image {
    order: 2;
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-accent);
    border-radius: 10px;
    z-index: -1;
}

/* ===== Services Section ===== */
.services {
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    height: 5px;
    background: linear-gradient(90deg, var(--color-button) 0%, var(--color-accent) 100%);
    z-index: -1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(106, 13, 173, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-accent);
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* ===== Why Choose Us Section ===== */
.why-us {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
    animation: fadeIn 0.6s ease-out;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #9b4dca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-accent);
}

/* ===== Testimonials Section ===== */
.testimonials {
    background: linear-gradient(135deg, var(--color-bg) 0%, #ffd7b5 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 13, 173, 0.05) 0%, rgba(255, 231, 209, 0) 70%);
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    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 {
    position: relative;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-content::before {
    content: '"';
    font-size: 60px;
    color: rgba(106, 13, 173, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    background-color: #f0f0f0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== Pricing Section ===== */
.pricing {
    background-color: white;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-plan {
    background-color: var(--color-form-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-header {
    background-color: var(--color-accent);
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-period {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul {
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.pricing-cta {
    text-align: center;
    margin-top: 20px;
}

.pricing-plan.featured {
    transform: scale(1.05);
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    border: 2px solid var(--color-button);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-plan.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.pricing-plan.featured .pricing-header {
    background: linear-gradient(135deg, var(--color-accent) 0%, #9b4dca 100%);
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--color-button);
    color: var(--color-accent);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===== Contact Form ===== */
.contact {
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 40px;
    animation: fadeIn 0.8s ease-out;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-row {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: var(--color-form-bg);
}

.form-control:focus {
    border-color: var(--color-accent);
    outline: none;
}

.form-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-check input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.form-check label {
    font-size: 0.95rem;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.form-submit button {
    padding: 14px 30px;
    font-size: 1.1rem;
    cursor: pointer;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.radio-option {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option label {
    display: block;
    background-color: var(--color-form-bg);
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option input:checked + label {
    border-color: var(--color-accent);
    background-color: rgba(106, 13, 173, 0.05);
    box-shadow: 0 2px 8px rgba(106, 13, 173, 0.2);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--color-accent);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: #fff;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-button);
}

.footer-description {
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-logo {
    margin-bottom: 20px;
}

.contact-info {
    list-style: none;
}

.contact-info li, .legal-links li {
    margin-bottom: 10px;
}

.contact-info a, .legal-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.contact-info a:hover, .legal-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    right: 0;
    background-color: white;
    padding: 15px 30px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    border-top: 3px solid var(--color-accent);
}

.cookie-banner.visible {
    transform: translateY(-100px);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

/* ===== Thank You Page ===== */
.thank-you {
    min-height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(57, 255, 20, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--color-accent);
    font-size: 3rem;
    animation: pulse 2s infinite;
}

.thank-you h1 {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.back-home {
    margin-top: 30px;
}

/* Improve mobile responsiveness for hero section */
@media (max-width: 576px) {
    * {
        box-sizing: border-box !important;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner {
        padding: 15px;
    }
}

/* ===== Policy Pages ===== */
.policy-page {
    background-color: white;
    padding: 60px 0;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.policy-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
    color: var(--color-accent);
    margin-top: 40px;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content ul, .policy-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .hero .container,
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text,
    .about-image {
        order: 0;
    }
    
    .about-image::before {
        display: none;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .pricing-plan.featured {
        transform: scale(1);
    }
    
    .pricing-plan.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero {
        padding: 80px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-banner {
        padding: 15px;
    }
}

/* ===== Additional Animation Classes ===== */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.gradient-bg {
    background: linear-gradient(270deg, var(--color-accent), #9b4dca, #7c3aed);
    background-size: 600% 600%;
    animation: gradientFlow 15s ease infinite;
} 