/* RESET Y VARIABLES */
:root {
    /* Paleta de colores */
    --color-bg: #f9f5ec;
    --color-primary: #5a189a;
    --color-secondary: #ff6f61;
    --color-text: #1c1c1c;
    --color-heading: #2d6a4f;
    --color-light: #ffffff;
    --color-gray: #f1f1f1;
    --color-dark-gray: #666666;
    --gradient-button: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-heading);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--color-dark-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* BOTONES Y ELEMENTOS DE FORMULARIO */
.cta-button, .submit-button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-button);
    color: var(--color-light);
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cta-button:hover, .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-light);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(90, 24, 154, 0.2);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(249, 245, 236, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: lowercase;
    letter-spacing: -1px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    line-height: 1;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* HERO SECTION */
.hero {
    padding-top: 120px;
    background: linear-gradient(180deg, var(--color-bg) 0%, #fff 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
}

/* ABOUT SECTION */
.about {
    background-color: var(--color-light);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    flex: 1;
    padding: 30px;
    text-align: center;
    background-color: var(--color-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* SERVICES SECTION */
.services {
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    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-content {
    padding: 30px;
}

.service-features {
    margin-top: 15px;
    padding-left: 20px;
}

.service-features li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
}

.service-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* WHY US SECTION */
.why-us {
    background-color: var(--color-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius-md);
    background-color: var(--color-bg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--color-primary);
}

/* TESTIMONIALS SECTION */
.testimonials {
    background-color: var(--color-bg);
}

.testimonial-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.testimonial-scroll::-webkit-scrollbar {
    height: 8px;
}

.testimonial-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.testimonial-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

.testimonial-card {
    min-width: 300px;
    width: calc(33.333% - 14px);
    scroll-snap-align: start;
    background-color: var(--color-light);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--color-dark-gray);
}

/* FAQ SECTION */
.faq {
    background-color: var(--color-light);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-bg);
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    position: relative;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
}

details[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 20px 20px;
}

/* CONTACT SECTION */
.contact {
    background-color: var(--color-bg);
}

.form-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-light);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-button);
}

.form-group {
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
}

/* FOOTER */
.footer {
    background-color: #222;
    color: #fff;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    color: var(--color-light);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-info p {
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--color-secondary);
}

.footer-links h3, .footer-legal h3 {
    color: var(--color-light);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a, .footer-legal a {
    color: #aaa;
    transition: all 0.3s ease;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #444 0%, #222 100%);
    color: #fff;
    padding: 20px;
    display: none;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.cookie-button {
    background: var(--color-secondary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-button:hover {
    background-color: var(--color-primary);
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .stats-container, .about-content {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-info {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .menu-button {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .menu-toggle:checked + .menu-button .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle:checked + .menu-button .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-button .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        align-items: center;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    
    .menu-toggle:checked ~ .nav-list {
        transform: translateY(0);
    }
    
    .testimonial-card {
        min-width: 280px;
        width: 85%;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-button {
        width: 100%;
    }
} 