/*
* Domain - Auditoría Financiera Website
* Main Stylesheet
*/

/* Color Palette
 * Midnight Indigo: #1B1F3B
 * Solar Amber: #FFB300
 * Misty Sage: #B4C5B9
 * Coral Accent: #FF6F61
 * Pearl White: #FAFAFA
 */

/* ===== RESET & GLOBAL STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --midnight-indigo: #1B1F3B;
    --solar-amber: #FFB300;
    --misty-sage: #B4C5B9;
    --coral-accent: #FF6F61;
    --pearl-white: #FAFAFA;
    --text-dark: #333333;
    --text-light: #FAFAFA;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 6px 30px rgba(0, 0, 0, 0.15);
    --transition-normal: all 0.3s ease;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--pearl-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--midnight-indigo);
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--solar-amber);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--midnight-indigo);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--solar-amber);
}

ul {
    list-style-type: none;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--misty-sage);
}

/* ===== BUTTONS ===== */
.cta-button, .pricing-button, .submit-button, .return-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--solar-amber);
    color: var(--midnight-indigo);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.cta-button:hover, .pricing-button:hover, .submit-button:hover, .return-button:hover {
    background-color: var(--coral-accent);
    color: var(--pearl-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.cta-nav-button {
    background-color: var(--solar-amber);
    color: var(--midnight-indigo);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
}

.cta-nav-button:hover {
    background-color: var(--coral-accent);
    color: var(--pearl-white);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--midnight-indigo);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo a {
    color: var(--pearl-white);
    letter-spacing: 2px;
}

.logo a:hover {
    color: var(--solar-amber);
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--pearl-white);
    font-weight: 500;
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--solar-amber);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--solar-amber);
    transition: var(--transition-normal);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--pearl-white);
    transition: var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/OrvN9n.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* For fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(27, 31, 59, 0.7); /* Midnight Indigo with opacity */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    color: var(--pearl-white);
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    color: var(--pearl-white);
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
}

.about-images img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-strong);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--pearl-white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-image {
    margin-bottom: 20px;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 0;
}

/* ===== PROCESS SECTION ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background-color: var(--solar-amber);
}

.step-number {
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: var(--midnight-indigo);
    color: var(--pearl-white);
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

/* ===== CASES SECTION ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-card {
    background-color: var(--pearl-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.case-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-card h3, .case-card p {
    padding: 0 20px;
}

.case-card h3 {
    margin-top: 20px;
}

.case-card p {
    padding-bottom: 20px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--pearl-white);
    padding: 30px;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    flex-grow: 1;
}

.quote::before, .quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--solar-amber);
    position: absolute;
}

.quote::before {
    top: -10px;
    left: -15px;
}

.quote::after {
    bottom: -30px;
    right: -15px;
}

.author {
    font-weight: 600;
    color: var(--midnight-indigo);
    margin-top: 10px;
}

/* ===== PRICING SECTION ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background-color: var(--pearl-white);
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    transition: var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.pricing-card.featured {
    border: 2px solid var(--solar-amber);
    z-index: 1;
    transform: scale(1.05);
}

.featured-label {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: var(--solar-amber);
    color: var(--midnight-indigo);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--midnight-indigo);
    margin-bottom: 30px;
}

.features {
    margin-bottom: 30px;
}

.features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.features li:last-child {
    border-bottom: none;
}

.pricing-button {
    display: block;
    width: 100%;
}

/* ===== ORDER FORM SECTION ===== */
.order-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--pearl-white);
    padding: 40px;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--midnight-indigo);
}

.form-group input, 
.form-group select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--pearl-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--solar-amber);
    box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.2);
}

.checkboxes {
    margin-top: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-wrapper label {
    font-size: 0.9rem;
}

.submit-button {
    margin-top: 20px;
    width: 100%;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--midnight-indigo);
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--solar-amber);
}

.map-container {
    height: 400px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--midnight-indigo);
    color: var(--pearl-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--pearl-white);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.footer-contact h4, 
.footer-links h4, 
.footer-services h4 {
    color: var(--solar-amber);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact ul, 
.footer-links ul, 
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a, 
.footer-services a {
    color: var(--pearl-white);
    transition: var(--transition-normal);
}

.footer-links a:hover, 
.footer-services a:hover {
    color: var(--solar-amber);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
    padding: 150px 0;
    height: 100vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--pearl-white);
    padding: 50px;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
}

/* ===== POLICY PAGES ===== */
.policy-section {
    padding: 150px 0 80px;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--pearl-white);
    padding: 50px;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
}

.policy-content h1 {
    margin-bottom: 20px;
    text-align: center;
}

.policy-content h2 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--solar-amber);
}

.policy-content h2::after {
    display: none;
}

.policy-list {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: disc;
}

.policy-list li {
    margin-bottom: 10px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th, 
.cookie-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.cookie-table th {
    background-color: var(--misty-sage);
}

.thank-you-icon {
    color: var(--solar-amber);
    margin-bottom: 20px;
}

.thank-you-content h1 {
    margin-bottom: 20px;
}

.thank-you-content p {
    margin-bottom: 15px;
}

.thank-you-cta {
    margin-top: 30px;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--midnight-indigo);
    color: var(--pearl-white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.cookie-banner p {
    margin-bottom: 0;
}

#accept-cookies {
    background-color: var(--solar-amber);
    color: var(--midnight-indigo);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

#accept-cookies:hover {
    background-color: var(--coral-accent);
    color: var(--pearl-white);
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid, 
    .process-steps, 
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step:nth-child(2)::after {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--midnight-indigo);
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .main-nav.menu-open {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 40px;
    }
    
    .about-content, 
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .services-grid, 
    .process-steps, 
    .pricing-grid, 
    .cases-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step::after {
        display: none;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
