/* 
* Domain - Servicios de Contabilidad
* Main Stylesheet
*/

/* ======= Base Styles ======= */
:root {
    /* Color Palette */
    --aquamarine: #00C9A7;
    --deep-blue: #012A4A;
    --amber: #FFB703;
    --light-beige: #F1F1E6;
    --dark-salmon: #D74F3F;
    
    /* Functional Colors */
    --primary: var(--aquamarine);
    --secondary: var(--deep-blue);
    --accent: var(--amber);
    --background: var(--light-beige);
    --highlight: var(--dark-salmon);
    
    /* Typography */
    --font-main: 'Arial', sans-serif;
    --font-headings: 'Arial', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--background);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--highlight);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    margin-bottom: var(--space-md);
    color: var(--secondary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--highlight);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    color: var(--secondary);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    margin: var(--space-sm) auto;
}

/* ======= Header ======= */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    text-decoration: none;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: var(--space-lg);
}

.main-nav a {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

/* ======= Hero Section ======= */
.hero-section {
    background-image: linear-gradient(rgba(1, 42, 74, 0.7), rgba(1, 42, 74, 0.7)), url('./img/aiuix.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
}

/* ======= About Section ======= */
.about-section {
    padding: var(--space-xl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--space-md);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ======= Services Section ======= */
.services-section {
    padding: var(--space-xl) 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    color: var(--secondary);
    padding: var(--space-md) var(--space-md) var(--space-sm);
}

.service-card p {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-md);
}

.service-card ul {
    padding: 0 var(--space-md) var(--space-md) var(--space-xl);
    margin-bottom: var(--space-md);
}

.service-card .btn {
    margin: var(--space-md);
}

/* ======= Benefits Section ======= */
.benefits-section {
    padding: var(--space-xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.benefit-item {
    text-align: center;
    padding: var(--space-lg);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    overflow: hidden;
}

.benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.benefit-item h3 {
    margin-bottom: var(--space-sm);
    color: var(--secondary);
}

/* ======= Testimonials Section ======= */
.testimonials-section {
    padding: var(--space-xl) 0;
    background-color: var(--secondary);
    color: white;
}

.testimonials-section .section-title {
    color: white;
}

.testimonials-section .section-title::after {
    background-color: var(--accent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.testimonial-card {
    background-color: white;
    color: var(--secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    margin-bottom: var(--space-md);
    font-style: italic;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
}

.testimonial-author h4 {
    margin-bottom: 0;
    color: var(--secondary);
}

.testimonial-author p {
    font-size: 0.9rem;
    color: #666;
}

/* ======= FAQ Section ======= */
.faq-section {
    padding: var(--space-xl) 0;
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--background);
    color: var(--secondary);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: var(--primary);
    color: white;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: var(--space-lg);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-toggle:checked + .faq-question {
    background-color: var(--primary);
    color: white;
}

.faq-toggle:checked + .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: var(--space-md) var(--space-lg);
}

/* ======= Contact Section ======= */
.contact-section {
    padding: var(--space-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-item {
    margin-bottom: var(--space-lg);
}

.contact-item h3 {
    color: var(--secondary);
    margin-bottom: var(--space-sm);
}

.map-container {
    margin-top: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.contact-form {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Custom styles for select options */
select option {
    background-color: white;
    color: var(--secondary);
    padding: var(--space-md);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: var(--space-sm);
    margin-top: 5px;
}

.required {
    color: var(--highlight);
}

/* ======= Footer ======= */
.site-footer {
    background-color: var(--secondary);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.footer-logo p {
    margin-top: var(--space-xs);
    opacity: 0.7;
}

.footer-contact h3,
.footer-links h3 {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-contact p {
    margin-bottom: var(--space-xs);
    opacity: 0.7;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ======= Cookie Consent ======= */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: rgba(1, 42, 74, 0.95);
    color: white;
    padding: var(--space-md);
    z-index: 1001;
    transition: bottom 0.5s ease;
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-content p {
    flex: 1;
    margin-right: var(--space-md);
}

.cookie-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* ======= Legal Pages ======= */
.legal-page {
    padding: var(--space-xl) 0;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.legal-container h1 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.legal-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.legal-content p,
.legal-content ul {
    margin-bottom: var(--space-md);
}

.legal-content ul {
    padding-left: var(--space-xl);
}

/* ======= Thank You Page ======= */
.thanks-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) 0;
}

.thanks-container {
    max-width: 600px;
    margin: 5rem auto;
    background-color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid var(--primary);
}

.thanks-container h1 {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.thanks-container p {
    margin-bottom: var(--space-lg);
}

/* ======= Media Queries ======= */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: span 2;
        text-align: center;
        margin-bottom: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    .main-nav li {
        margin: 0;
    }
    
    .main-nav a {
        display: block;
        padding: var(--space-md);
        border-bottom: 1px solid #eee;
    }
    
    .menu-toggle:checked ~ .main-nav {
        max-height: 500px;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        grid-column: span 1;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: var(--space-md);
    }
}