/* 
* domain - Auditoría Financiera
* Main Stylesheet 
*/

/* ======= Global Styles ======= */
:root {
    /* Colors */
    --background: #0e1a25;
    --primary-accent: #ffc857;
    --text-color: #f7f9fb;
    --secondary-accent: #ff6b6b;
    --gray-dark: #1c2a39;
    --gray-light: #4a5568;
    --gradient-primary: linear-gradient(135deg, var(--secondary-accent), var(--primary-accent));
    
    /* Typography */
    --font-main: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-headings: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-accent);
}

.accent {
    color: var(--primary-accent);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--background);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 200, 87, 0.4);
    color: var(--background);
}

.btn-secondary {
    background-color: var(--gray-dark);
    color: var(--text-color);
    border: 1px solid var(--primary-accent);
}

.btn-secondary:hover {
    background-color: var(--gray-light);
    transform: translateY(-3px);
    color: var(--text-color);
}

/* Sections */
section {
    padding: 5rem 0;
}

/* ======= Header and Navigation ======= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(14, 26, 37, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 200, 87, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-accent);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center; /* Alinear todos los elementos al centro */
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    display: flex; /* Para asegurar alineación consistente */
    align-items: center;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--gray-dark);
        padding: 1.5rem;
        border-bottom: 1px solid var(--primary-accent);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
        display: block;
    }
    
    .mobile-nav-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center; /* Alinear también en el menú móvil */
    }
    
    .mobile-nav-list a {
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ======= Hero Section ======= */
.hero-section {
    padding-top: 10rem;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-accent) 0%, rgba(255, 200, 87, 0) 70%);
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--secondary-accent) 0%, rgba(255, 107, 107, 0) 70%);
    opacity: 0.1;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    animation: imageAppear 1s ease-in-out;
    transform-origin: center;
}

@keyframes imageAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: 8rem;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-image {
        justify-content: center;
    }
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* ======= About Section ======= */
.about-section {
    background-color: rgba(28, 42, 57, 0.5);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-bottom: 2rem;
    }
}

/* Counter Animation */
.counter {
    display: inline-block;
    position: relative;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======= Services Section ======= */
.services-section {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Service card styles updated for images instead of icons */
.service-image {
    height: 180px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 8px 8px 0 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-card {
    background-color: rgba(28, 42, 57, 0.5);
    border-radius: 8px;
    padding: 0 0 2rem 0;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card h3,
.service-card p {
    padding: 0 2rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 200, 87, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 200, 87, 0.1);
    color: var(--primary-accent);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 36px;
    height: 36px;
}

.service-card:hover .service-icon {
    background-color: rgba(255, 200, 87, 0.2);
    transform: scale(1.1);
}

/* ======= Why Us Section ======= */
.why-us-section {
    background-color: rgba(28, 42, 57, 0.5);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.why-us-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    transition: transform 0.3s ease;
}

.why-us-icon svg {
    width: 32px;
    height: 32px;
}

.why-us-card:hover .why-us-icon {
    transform: scale(1.2);
}

/* ======= Process Section ======= */
.process-section {
    position: relative;
}

.process-steps {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-accent), var(--secondary-accent));
}

.process-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--background);
    flex-shrink: 0;
    z-index: 1;
    position: relative;
    transition: all 0.3s ease;
}

.step-content {
    padding-left: 2rem;
    padding-top: 0.5rem;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 200, 87, 0.5);
}

@media (max-width: 768px) {
    .process-steps::before {
        left: 25px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ======= Cases Section ======= */
.cases-section {
    background-color: rgba(28, 42, 57, 0.5);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--gray-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-content {
    padding: 1.5rem;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

/* ======= Testimonials Section ======= */
.testimonials-section {
    position: relative;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: rgba(28, 42, 57, 0.5);
    border-radius: 8px;
    padding: 2rem;
    border-left: 3px solid var(--primary-accent);
    transition: all 0.3s ease;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 2.5rem;
    color: var(--primary-accent);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--primary-accent);
}

.author-position {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ======= FAQ Section ======= */
.faq-section {
    background-color: rgba(28, 42, 57, 0.5);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--gray-dark);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-accent);
    transition: transform 0.3s ease;
}

.faq-answer {
    background-color: rgba(14, 26, 37, 0.5);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-question:hover {
    background-color: var(--gray-light);
}

/* ======= Contact Section ======= */
.contact-section {
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 200, 87, 0.1);
    border-radius: 50%;
    color: var(--primary-accent);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text h3 {
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: var(--gray-dark);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    background-color: rgba(14, 26, 37, 0.8);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        order: -1;
    }
}

/* ======= Footer ======= */
.footer {
    background-color: var(--gray-dark);
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 200, 87, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-description {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact .contact-item {
    color: var(--text-color);
    gap: 0.5rem;
}

.footer-contact .contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-accent);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-links-column h3 {
    color: var(--primary-accent);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column li {
    margin-bottom: 0.8rem;
}

.footer-links-column a {
    color: var(--text-color);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links-column a:hover {
    color: var(--primary-accent);
    opacity: 1;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ======= Cookie Consent ======= */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--gray-dark);
    padding: 1.5rem;
    z-index: 999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
        margin-right: 0;
        text-align: center;
    }
}

/* ======= Thanks Page ======= */
.thanks-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 5rem;
}

.thanks-card {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(28, 42, 57, 0.7);
    border: 2px solid var(--primary-accent);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.thanks-card:before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 12px;
    background: linear-gradient(45deg, var(--primary-accent), transparent, var(--secondary-accent), transparent, var(--primary-accent));
    background-size: 400%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: glowing 20s linear infinite;
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.thanks-content {
    text-align: center;
}

.thanks-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 200, 87, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--primary-accent);
}

.thanks-icon svg {
    width: 50px;
    height: 50px;
}

.thanks-actions {
    margin-top: 2rem;
}

/* ======= Legal Pages ======= */
.legal-section {
    padding: 8rem 0 5rem;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(28, 42, 57, 0.5);
    border-radius: 8px;
    padding: 3rem;
}

.legal-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.legal-content h3 {
    color: var(--primary-accent);
    margin-top: 2rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .legal-container {
        padding: 2rem 1.5rem;
    }
}

/* Animation for elements as they come into view */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} 

/* Mobile menu form styles */
.mobile-menu-form {
    display: contents;
}

.mobile-menu-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-form button {
        display: block;
    }
}

/* FAQ form styles */
.faq-toggle-form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

button.faq-icon {
    background: none;
    border: none;
    color: var(--primary-accent);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
} 