/* 
 * Main CSS File
 * domain - Servicios de Auditoría Financiera
 */

/* Variables */
:root {
    --primary: #3E005C;
    --secondary: #FF6F00;
    --dark: #120136;
    --light: #EEEEEE;
    --accent: #1DE9B6;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    --gradient-hover: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease-in-out;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--white);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 3rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Header */
header {
    background: var(--primary);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    text-transform: lowercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.logo a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: bottom right;
}

.logo a:hover {
    color: var(--white);
}

.logo a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--light);
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--white);
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

/* CTA Button in navigation */
nav ul li a.cta-button {
    background-color: var(--secondary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: var(--box-shadow);
}

nav ul li a.cta-button:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

nav ul li a.cta-button::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

#menu-toggle {
    display: none;
}

.mobile-menu-toggle label {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.mobile-menu-toggle label span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.mobile-menu-toggle label span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle label span:nth-child(2) {
    top: 10px;
}

.mobile-menu-toggle label span:nth-child(3) {
    top: 20px;
}

#menu-toggle:checked ~ label span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

#menu-toggle:checked ~ label span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

#menu-toggle:checked ~ label span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--dark);
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Section Styles */
section {
    padding: 8rem 0;
    position: relative;
}

section:nth-of-type(even) {
    background-color: rgba(62, 0, 92, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

/* About Section */
.about {
    background-color: var(--dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Benefits Section */
.benefits {
    background-color: rgba(255, 111, 0, 0.05);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.benefit-item {
    background-color: rgba(62, 0, 92, 0.1);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.benefit-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--box-shadow);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem;
}

.service-card {
    background-color: rgba(62, 0, 92, 0.2);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.service-content {
    padding: 3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    margin-bottom: 2rem;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

/* Why Choose Us Section */
.why-us {
    background-color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.feature-item {
    background: rgba(62, 0, 92, 0.2);
    border-left: 3px solid var(--accent);
    padding: 2rem;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(62, 0, 92, 0.4);
    transform: translateX(5px);
}

/* Contact Form Section */
.contact {
    background: var(--gradient);
    position: relative;
}

.form-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--box-shadow);
}

.form-error {
    background-color: rgba(255, 59, 48, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #ff3b30;
}

.form-error ul {
    list-style-position: inside;
    color: var(--white);
    margin: 0;
    padding: 0;
}

.form-error li {
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--white);
}

.form-input {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    color: var(--white);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.2);
}

.form-select {
    appearance: none;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: rgba(62, 0, 92, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.form-select option {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.checkbox-container input {
    margin-right: 1rem;
    margin-top: 0.3rem;
    width: 18px;
    height: 18px;
}

.form-button {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.8rem;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.form-button:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Testimonials Section */
.testimonials {
    background-color: rgba(62, 0, 92, 0.05);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 4rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 2rem;
    font-size: 8rem;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--accent);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.client-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.client-role {
    font-size: 1.4rem;
    color: var(--accent);
}

/* FAQ Section */
.faq {
    background-color: var(--dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    position: relative;
    padding: 2rem 4rem 2rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 2rem;
}

.faq-question a {
    color: var(--white);
    text-decoration: none;
    display: block;
    width: 100%;
}

.faq-question a:hover {
    color: var(--accent);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.6rem;
    color: var(--accent);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    padding: 0 2rem;
    opacity: 0;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 2rem;
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 6rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--primary);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.contact-list,
.policy-links {
    list-style: none;
}

.contact-list li,
.policy-links li {
    margin-bottom: 1.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(18, 1, 54, 0.9);
    padding: 2rem;
    display: flex;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
}

.cookie-content p {
    margin-bottom: 0;
}

#accept-cookies {
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

#accept-cookies:hover {
    background-color: var(--accent);
}

/* Policy Pages */
.policy-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.policy-content {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 4rem;
}

.policy-content h1 {
    text-align: center;
    margin-bottom: 4rem;
}

.policy-content h2 {
    margin-top: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 5rem auto;
    background-color: rgba(62, 0, 92, 0.2);
    border-radius: 2rem;
    border: 2px solid var(--accent);
    box-shadow: 0 0 20px rgba(29, 233, 182, 0.2);
    position: relative;
    overflow: hidden;
}

.thank-you::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
}

.thank-you h1 {
    font-size: 5rem;
    margin-bottom: 3rem;
    color: var(--accent);
}

.thank-you p {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.confirmation-message {
    background-color: rgba(29, 233, 182, 0.1);
    border-radius: 1.5rem;
    padding: 3rem;
    margin: 3rem 0;
    border-left: 4px solid var(--accent);
    text-align: left;
}

.confirmation-message strong {
    color: var(--accent);
}

.confirmation-reference {
    font-size: 1.4rem;
    margin: 2rem 0;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.admin-verification {
    margin-top: 4rem;
    text-align: left;
    background-color: rgba(255, 111, 0, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    border-left: 4px solid var(--secondary);
}

.admin-verification h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.submission-details {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.submission-details pre {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--light);
    overflow-x: auto;
    font-family: monospace;
    font-size: 1.4rem;
    margin-top: 1.5rem;
    white-space: pre-wrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    html {
        font-size: 55%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 7rem;
        left: 0;
        width: 100%;
        background: var(--primary);
        padding: 2rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
    }
    
    #menu-toggle:checked ~ nav {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
        pointer-events: all;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 50%;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 2.8rem;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .services-grid,
    .benefits-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
} 