/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #FF6B6B 0%, #6C5CE7 100%);
    --primary-cream: #FFF1E6;
    --accent-green: #2ECC71;
    --accent-yellow: #F1C40F;
    --accent-gray: #2D3436;
    --background-coral: #FF6B6B;
    --background-purple: #6C5CE7;
    --shadow-light: rgba(255, 107, 107, 0.2);
    --shadow-dark: rgba(108, 92, 231, 0.3);
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--accent-gray);
    background: var(--primary-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: rgba(255, 241, 230, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(46, 204, 113, 0.3);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--accent-gray);
    font-weight: 800;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-svg, .footer-logo-svg {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.logo-svg:hover {
    transform: rotate(10deg) scale(1.1);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--accent-gray);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-green);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--accent-green);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-green), var(--accent-yellow));
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-dark);
    background: linear-gradient(45deg, var(--accent-yellow), var(--accent-green));
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/qC1fLD.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: var(--accent-gray);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
    background: var(--primary-cream);
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    animation: slideIn 2s ease-out;
}

@keyframes slideIn {
    to { left: 0; }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gray);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-dark);
    border-color: var(--accent-green);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-green);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-gray);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(241, 196, 15, 0.1));
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--shadow-light);
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.faq-question {
    background: white;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    list-style: none;
    outline: none;
    user-select: none;
}

.faq-question:hover {
    background: rgba(46, 204, 113, 0.1);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-green);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    background: rgba(255, 241, 230, 0.5);
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Styles */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow-light);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

/* Footer Styles */
.footer {
    background: var(--accent-gray);
    color: var(--primary-cream);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--primary-cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.contact-info a {
    color: white !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-green) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 241, 230, 0.3);
    padding-top: 1rem;
    text-align: center;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-accept, .btn-decline {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--accent-green);
    color: white;
}

.btn-decline {
    background: transparent;
    color: var(--accent-gray);
    border: 1px solid var(--accent-gray);
}

.btn-accept:hover, .btn-decline:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .section {
        margin: 1rem 0;
        padding: 40px 0;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    /* Additional responsive improvements */
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Make grids more mobile-friendly */
    .services-grid,
    .benefits-grid {
        gap: 1rem;
    }
    
    .service-card,
    .benefit-card {
        padding: 1.5rem;
    }
    
    /* Optimize contact section for mobile */
    #contacto .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* About section mobile optimization */
    #nosotros .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
} 