/* 
  Main Stylesheet for Accounting Services Website
  Color Palette:
  - Primary: Electric Purple #BF00FF
  - Secondary: Sunset Orange #FF5E3A
  - Background: Ivory #FFFFF0
  - Accents: Deep Teal #005F73, Lime Green #A8E10C
*/

/* --- Base Styles --- */
:root {
    --primary: #BF00FF;
    --secondary: #FF5E3A;
    --background: #FFFFF0;
    --teal: #005F73;
    --lime: #A8E10C;
    --dark: #333333;
    --light: #FFFFFF;
    --gray: #777777;
    --light-gray: #EEEEEE;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --header-height: 80px; /* Variable para altura de header */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

section {
    padding: 80px 0;
}

/* Para solucionar problema del scroll hacia secciones con header fijo */
section[id] {
    scroll-margin-top: var(--header-height);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--light);
    box-shadow: var(--box-shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-3px);
    color: var(--light);
    box-shadow: 0 6px 16px rgba(191, 0, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
}

.btn-cookie {
    background-color: var(--teal);
    color: var(--light);
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-cookie:hover {
    background-color: var(--lime);
    color: var(--dark);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--light);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: 15px 0;
    height: var(--header-height);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    flex: 1;
    max-width: 180px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    margin: 0 20px;
}

.contact-info .phone {
    display: flex;
    align-items: center;
    color: var(--dark);
    font-weight: 500;
}

.contact-info .phone svg {
    margin-right: 6px;
}

/* --- Navigation --- */
.main-nav {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    text-decoration: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 12px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a.btn-nav {
    background-color: var(--primary);
    color: var(--light);
    border-radius: var(--radius);
    padding: 10px 16px;
}

.nav-menu a.btn-nav:hover {
    background-color: var(--secondary);
}

.nav-menu a.btn-nav::after {
    display: none;
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.7), rgba(255, 94, 58, 0.7)), 
                url('../img/LQjy3a.jpg') center/cover no-repeat fixed;
    text-align: center;
    border-radius: 0 0 50% 50% / 15%;
    color: var(--light);
    position: relative;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    color: var(--light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.about-image:hover {
    transform: rotate(0) scale(1.03);
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* --- Services Section --- */
.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    padding-bottom: 20px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.service-card h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary);
}

.service-card p {
    padding: 0 20px;
}

.service-card .price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary);
    margin: 15px 0;
}

.service-card .btn {
    margin-top: 15px;
}

/* --- Why Us Section --- */
.why-us {
    background-color: var(--background);
    position: relative;
    text-align: center;
}

.why-us-image {
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.why-us-image img {
    width: 100%;
    border-radius: var(--radius);
    transition: var(--transition);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    flex: 0 0 calc(33.333% - 30px);
    max-width: calc(33.333% - 30px);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(191, 0, 255, 0.1);
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--teal);
}

/* --- Testimonials Section --- */
.testimonials {
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.05), rgba(255, 94, 58, 0.05));
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--light);
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    line-height: 1;
    opacity: 0.1;
    color: var(--primary);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    color: var(--gray);
    text-align: right;
}

.testimonial-author strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    background-color: var(--primary);
    color: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 20px;
    position: relative;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--lime);
    bottom: -10px;
    left: 0;
}

.contact-info p {
    margin: 15px 0;
}

/* --- Contact Form --- */
.contact-form {
    background-color: var(--light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="100" height="100"><path fill="rgba(191, 0, 255, 0.05)" d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 15h14v2H5zm0-8h14v2H5zm0 4h14v2H5z"/></svg>') no-repeat;
    z-index: -1;
    top: 20px;
    right: 20px;
    opacity: 0.2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(191, 0, 255, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-group.checkbox label {
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
    background-color: #333;
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: #ccc;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-col address p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
}

.footer-col address svg {
    margin-right: 10px;
    min-width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.company-info p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    color: #777;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--light);
    border-radius: var(--radius);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

/* --- Thank You Page Styles --- */
.thank-you {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.1), rgba(255, 94, 58, 0.1));
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border: 3px solid var(--primary);
    border-radius: var(--radius);
    background-color: var(--light);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.thank-you-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background-color: rgba(191, 0, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

.thank-you h1 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 3rem;
}

.thank-you p {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    color: var(--dark);
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .feature {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
    
    .why-us-image {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .contact-info {
        margin: 0 0 15px 0;
    }
    
    .menu-toggle {
        display: block;
        position: static;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--light);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--box-shadow);
        padding: 20px;
        border-radius: var(--radius);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
        margin-left: 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .form-group.checkbox {
        align-items: flex-start;
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(191, 0, 255, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(191, 0, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(191, 0, 255, 0);
    }
}

.hero h1, 
.hero p, 
.hero .btn {
    animation: fadeIn 1s ease forwards;
}

.hero p {
    animation-delay: 0.2s;
}

.hero .btn {
    animation-delay: 0.4s;
}

.btn-primary:hover {
    animation: pulse 1.5s infinite;
} 