/* 
   AuditFin - Responsive Spanish Website
   Color Palette:
   - Main Background: #1C1F26 (deep graphite)
   - Accents: #FCE300 (lemon yellow), #50C878 (emerald), #00BFFF (azure blue)
   - Text: #FFFFFF (white), #B0BEC5 (light gray)
*/

/* Global Styles */
:root {
    --color-background: #1C1F26;
    --color-accent1: #FCE300;
    --color-accent2: #50C878;
    --color-accent3: #00BFFF;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #B0BEC5;
    --color-error: #FF5252;
    --font-primary: 'Segoe UI', Arial, sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    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 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent1);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent1);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-accent3);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-accent1);
    color: var(--color-background);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary:hover {
    background-color: var(--color-accent3);
    color: var(--color-text-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(28, 31, 38, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 150px;
    height: 50px;
}

.navigation {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: var(--color-text-primary);
    font-weight: 600;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent1);
    transition: width var(--transition-speed);
}

.nav-menu a:hover:after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-accent1);
    color: var(--color-background) !important;
    padding: 8px 15px;
    border-radius: 5px;
}

.nav-cta:hover {
    background-color: var(--color-accent3);
    color: var(--color-text-primary) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-primary);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(28, 31, 38, 0.8), rgba(28, 31, 38, 0.9)), url('./img/5fMWrq.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-section .container {
    max-width: 800px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    animation: fadeInUp 1s ease;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent1);
    color: var(--color-background);
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all var(--transition-speed);
    animation: fadeIn 1.5s ease;
}

.cta-button:hover {
    background-color: var(--color-accent3);
    color: var(--color-text-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Advantages Section */
.ventajas-section {
    background-color: #232730;
    padding: 100px 0;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ventaja-card {
    background: #2A2E39;
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ventaja-card:hover {
    transform: translateY(-10px);
}

.ventaja-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ventaja-card h3 {
    padding: 20px 20px 10px;
    color: var(--color-accent1);
}

.ventaja-card p {
    padding: 0 20px 20px;
    color: var(--color-text-secondary);
}

/* About Us Section */
.nosotros-section {
    background-color: var(--color-background);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.nosotros-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nosotros-text h2 {
    color: var(--color-accent1);
}

.nosotros-text p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

/* Services Section */
.servicios-section {
    background-color: #232730;
    text-align: center;
}

.servicios-section h2 {
    color: var(--color-accent1);
    margin-left: auto;
    margin-right: auto;
}

.servicios-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.servicio-card {
    background: #2A2E39;
    padding: 40px 30px;
    border-radius: 10px;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.servicio-card h3 {
    color: var(--color-accent1);
    margin-bottom: 20px;
}

.servicio-card p {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
}

.servicio-link {
    display: inline-block;
    color: var(--color-accent3);
    font-weight: 600;
    position: relative;
    margin-top: auto;
}

.servicio-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent3);
    transition: width var(--transition-speed);
}

.servicio-link:hover:after {
    width: 100%;
}

/* Testimonials Section */
.testimonios-section {
    background-color: var(--color-background);
    text-align: center;
}

.testimonios-section h2 {
    color: var(--color-accent1);
    margin-left: auto;
    margin-right: auto;
}

.testimonios-section h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonios-slider {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonio {
    background: #2A2E39;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
}

.testimonio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.testimonio blockquote {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    position: relative;
}

.testimonio blockquote:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 60px;
    color: rgba(252, 227, 0, 0.2);
    z-index: 0;
}

.testimonio cite {
    display: block;
    font-weight: 600;
    margin-top: 15px;
    color: var(--color-accent1);
}

/* Contact Form Section */
.contacto-section {
    background-color: #232730;
}

/* Form Error Messages */
.form-errors {
    background-color: rgba(255, 82, 82, 0.1);
    border-left: 4px solid var(--color-error);
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.error-message {
    color: var(--color-error);
    margin-bottom: 8px;
    font-weight: 500;
}

.error-message:last-child {
    margin-bottom: 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #2A2E39;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A3F4B;
    background-color: #323642;
    color: var(--color-text-primary);
    border-radius: 5px;
    font-size: 16px;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-accent1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(252, 227, 0, 0.2);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--color-error);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--color-accent1);
    color: var(--color-background);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 30px;
}

.submit-button:hover {
    background-color: var(--color-accent3);
    color: var(--color-text-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.faq-section {
    background-color: var(--color-background);
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    background: #2A2E39;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed);
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-accent1);
}

.faq-item.active .faq-question:after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    color: var(--color-text-secondary);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-item.active .faq-question {
    background-color: #323642;
}

/* Contact Info Section */
.info-contacto-section {
    background-color: #232730;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contacto-info h2 {
    color: var(--color-accent1);
}

.contacto-info p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.contacto-info strong {
    color: var(--color-text-primary);
}

.contacto-mapa {
    height: 100%;
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: #1a1d24;
    padding: 80px 0 20px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-size: 18px;
    color: var(--color-accent1);
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent1);
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo svg {
    width: 120px;
    height: 40px;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--color-text-secondary);
    transition: color var(--transition-speed);
}

.footer-nav a:hover {
    color: var(--color-accent1);
}

.footer-column p {
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #3A3F4B;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: #2A2E39;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-popup.active {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

#accept-cookies {
    background: var(--color-accent1);
    color: var(--color-background);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed);
}

#accept-cookies:hover {
    background: var(--color-accent3);
    color: var(--color-text-primary);
}

/* Legal Pages */
.legal-section {
    padding: 120px 0 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: #2A2E39;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.legal-date {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    font-style: italic;
}

.legal-content h2 {
    color: var(--color-accent1);
    margin-top: 40px;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--color-text-secondary);
}

.legal-content li {
    margin-bottom: 10px;
}

/* Thank You Page */
.gracias-section {
    padding: 150px 0 100px;
    text-align: center;
}

.gracias-content {
    max-width: 700px;
    margin: 0 auto;
    background: #2A2E39;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gracias-content h1 {
    color: var(--color-accent1);
    margin-bottom: 30px;
}

.gracias-content p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.gracias-actions {
    margin-top: 40px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .nosotros-content {
        grid-template-columns: 1fr;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #232730;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 100px 0;
    }
    
    .hero-section h1 {
        font-size: 2.3rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .legal-content {
        padding: 30px 20px;
    }
    
    .gracias-content {
        padding: 30px 20px;
    }
}

/* Main content padding for fixed header */
main {
    padding-top: 80px;
} 