/* 
Gestión Clara - Main Stylesheet
Version: 1.0
*/

/* ------------ Base Styles ------------ */
:root {
    /* Color Variables */
    --color-bg-start: #a3c96e;
    --color-bg-end: #fc6c5b;
    --color-text: #2a2a2a;
    --color-accent-peach: #ffb07c;
    --color-accent-white: #ffffff;
    --color-accent-turquoise: #4ac6c0;
    --color-button: #ffd700;
    --color-button-text: #003366;
    --color-shadow: rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-accent-turquoise);
    margin: 0.5rem auto;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-accent-turquoise);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-peach);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 6rem 0;
}

/* ------------ Header Styles ------------ */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;

    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px var(--color-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    font-weight: bold;
    color: var(--color-text);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-turquoise);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* ------------ Hero Section ------------ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-button);
    color: var(--color-button-text);
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--color-shadow);
    color: var(--color-button-text);
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--color-shadow);
}

/* ------------ About Section ------------ */
.about-section {
    background-color: var(--color-accent-white);
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--color-shadow);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: perspective(1000px) rotateY(0);
}

/* ------------ Services Section ------------ */
.services-section {
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-accent-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--color-shadow);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-accent-turquoise), var(--color-accent-peach));
    border-radius: 50%;
    margin-bottom: 1.5rem;
    margin: 0 auto 1.5rem;
}

.service-svg {
    fill: var(--color-accent-white);
    width: 35px;
    height: 35px;
}

.service-card h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service-link {
    text-align: center;
    font-weight: 600;
    display: block;
    transition: all 0.3s ease;
}

/* ------------ Benefits Section ------------ */
.benefits-section {
    background-color: var(--color-accent-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    position: relative;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px var(--color-shadow);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-number {
    font-size: 4rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    right: 10px;
}

/* ------------ Testimonials Section ------------ */
.testimonials-section {
    background-color: #f9f9f9;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-accent-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--color-shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '❝';
    font-size: 2rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.author-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.7;
}

/* ------------ Contact Form Section ------------ */
.contact-section {
    background: linear-gradient(135deg, rgba(163, 201, 110, 0.1), rgba(252, 108, 91, 0.1));
}

.form-container {
    background: linear-gradient(135deg, var(--color-accent-white), #f9f9f9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--color-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent-turquoise);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
}

.checkbox-container input {
    width: auto;
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

.checkbox-container label {
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

.submit-button {
    padding: 1rem 2.5rem;
    background-color: var(--color-button);
    color: var(--color-button-text);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px var(--color-shadow);
}

.submit-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--color-shadow);
}

/* ------------ FAQ Section ------------ */
.faq-section {
    background-color: var(--color-accent-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-toggle::before, 
.faq-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--color-accent-turquoise);
    transition: transform 0.3s ease;
}

.faq-toggle::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-toggle::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item.active .faq-toggle::after {
    transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1rem 1.5rem 1.5rem;
    max-height: 300px;
}

.faq-item.active .faq-question {
    background-color: #f0f0f0;
}

/* ------------ Footer ------------ */
.footer {
    background-color: #333;
    color: var(--color-accent-white);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-heading {
    color: var(--color-accent-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent-peach);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact-icon {
    margin-right: 10px;
    color: var(--color-accent-turquoise);
    font-size: 1.2rem;
    min-width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ------------ Cookie Popup ------------ */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -5px 20px var(--color-shadow);
    padding: 1.5rem;
    z-index: 1001;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.cookie-popup.active {
    bottom: 0;
}

.cookie-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-popup p {
    margin: 0;
    padding-right: 1rem;
}

.cookie-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-button);
    color: var(--color-button-text);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* ------------ Animations ------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ------------ Responsive ------------ */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }
    .hero-content h1{
        font-size: 2rem !important;
    }
    .about-content, .services-grid, .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-accent-white);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px var(--color-shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-popup p {
        margin-bottom: 1rem;
        padding-right: 0;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
} 