/* ===== PALETA DE COLORES ===== */
:root {
    --primary: #0F3B66;
    --primary-light: #1a5a8f;
    --secondary: #10B981;
    --light-bg: #E8F0F8;
    --white: #FFFFFF;
    --dark: #1F2937;
    --gray: #6B7280;
    --border: #D1D5DB;
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--white);
    color: var(--dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.py-6 { padding: 80px 0; }
.bg-light { background: var(--light-bg); }
.text-center { text-align: center; }
.rounded { border-radius: var(--radius); }
.mb-5 { margin-bottom: 50px; }
.lead { font-size: 18px; color: var(--gray); }

/* ===== NAVBAR ===== */
.site-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.brand:hover {
    color: var(--secondary);
}

.brand i {
    font-size: 28px;
    color: var(--secondary);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-list a:hover {
    color: var(--secondary);
    background: var(--light-bg);
}

.nav-cta {
    background: var(--secondary) !important;
    color: var(--white) !important;
    padding: 10px 16px !important;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--secondary) !important;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.nav-toggle:hover {
    color: var(--secondary);
}

/* ===== RESPONSIVE NAVBAR ===== */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        gap: 0;
        padding: 20px;
        border-top: 2px solid var(--secondary);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        animation: slideDown 0.3s ease;
    }
    
    .nav-list.open { 
        display: flex; 
    }
    
    .nav-list li {
        width: 100%;
    }
    
    .nav-list a {
        display: block;
        padding: 12px 16px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-list li:last-child a {
        border-bottom: none;
    }
    
    .nav-cta {
        margin-top: 10px;
        text-align: center !important;
    }
    
    .nav-toggle { 
        display: block; 
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HERO ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(15, 59, 102, 0.75), rgba(26, 90, 143, 0.75)), 
                url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=1200&h=800&fit=crop') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

/* Hero con imagen personalizada */
.hero-with-image {
    background: url('../img/hero.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 59, 102, 0.75) 0%, rgba(26, 90, 143, 0.55) 100%);
    z-index: 1;
}

.hero-with-image .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.98;
    margin-bottom: 25px;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Hero Features (Checkmarks estilo Libera tu Luz) */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.12);
    padding: 12px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hero-feature i {
    font-size: 20px;
    color: var(--secondary);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@media (max-width: 576px) {
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-feature {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--secondary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
    width: 100%;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

/* ===== PROBLEMAS ===== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.problem-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.problem-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
    transform: translateY(-5px);
}

.problem-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.problem-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin: 15px 0;
}

.problem-card p {
    color: var(--gray);
    margin: 0;
}

/* ===== SOLUCIÓN ===== */
.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.solution-text h2 {
    color: var(--primary);
}

.solution-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.solution-list li {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    color: var(--dark);
    font-weight: 500;
}

.solution-list i {
    color: var(--secondary);
    font-size: 20px;
    flex-shrink: 0;
}

.solution-image img {
    max-width: 100%;
    display: block;
}

@media (max-width: 768px) {
    .solution-content { grid-template-columns: 1fr; }
}

/* ===== TIMELINE HORIZONTAL ===== */
.timeline-section {
    margin-top: 80px;
}

.timeline {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 40px 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1;
}

.timeline-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: 4px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-weight: 900;
    font-size: 20px;
    box-shadow: 0 0 0 3px var(--light-bg);
}

.timeline-step h4 {
    color: var(--primary);
    font-weight: 700;
    margin: 15px 0 8px;
}

.timeline-step p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .timeline { flex-direction: column; }
    .timeline::before { display: none; }
}

/* ===== CAROUSEL - MEJORADO Y CORREGIDO ===== */
.simple-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(15, 59, 102, 0.15);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: var(--white);
}

.project-preview {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(15, 59, 102, 0.95));
    color: var(--white);
    padding: 40px 100px; /* Padding lateral aumentado para las flechas */
    transform: translateY(0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 50%;
}

.project-content {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.project-overlay h3 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 10px;
    color: var(--white);
}

.project-overlay p {
    font-size: 16px;
    margin: 0 0 20px;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    justify-content: center;
}

.tech-tag {
    background: var(--secondary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.project-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-arrow:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 20px;
}

.carousel-arrow.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.carousel-indicator.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* ===== PRICING ===== */
.pricing-card {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 50px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 12px 40px rgba(15, 59, 102, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    color: var(--primary);
    font-size: 24px;
    margin: 0 0 15px;
}

.price-original {
    font-size: 14px;
    color: var(--gray);
    text-decoration: line-through;
    margin-bottom: 5px;
}

.price {
    font-size: 56px;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 10px;
}

.price span {
    font-size: 20px;
    color: var(--gray);
}

.price-desc {
    color: var(--gray);
    margin: 0;
    font-size: 14px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.features-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

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

.features-list i {
    color: var(--secondary);
    font-size: 18px;
    flex-shrink: 0;
}

/* ===== FAQ FIXED ===== */
.faq-container {
    max-width: 700px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.faq-question {
    padding: 20px;
    background: var(--light-bg);
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    user-select: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: rgba(16, 185, 129, 0.1);
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--gray);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== CTA FINAL ===== */
.cta-final {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.cta-final h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--white);
}

.cta-final p {
    margin-bottom: 30px;
    opacity: 0.95;
    color: var(--white);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h6 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-credit {
    opacity: 0.6;
    font-size: 13px;
}

/* ===== RESPONSIVE MEJORADO ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 18px; }
    .section-title { font-size: 32px; }
    .py-6 { padding: 50px 0; }
    
    /* Carousel Responsive */
    .carousel-slides {
        height: 450px;
    }
    
    .project-overlay {
        padding: 30px 70px; /* Reducir padding lateral en tablets */
    }
    
    .project-overlay h3 {
        font-size: 22px;
    }
    
    .project-overlay p {
        font-size: 14px;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .carousel-arrow.prev {
        left: 15px;
    }
    
    .carousel-arrow.next {
        right: 15px;
    }
    
    /* FAQ Responsive */
    .faq-question {
        padding: 16px;
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 16px;
    }
    
    .faq-answer {
        font-size: 14px;
    }
    
    /* Pricing Responsive */
    .pricing-card {
        padding: 30px 20px;
    }
    
    .price {
        font-size: 42px;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 28px; }
    .section-title { font-size: 24px; }
    
    .carousel-slides {
        height: 400px;
    }
    
    .project-overlay {
        padding: 25px 20px; /* Padding mínimo en mobile */
        min-height: 60%;
    }
    
    .project-content {
        max-width: 100%;
    }
    
    .project-overlay h3 {
        font-size: 20px;
    }
    
    .project-overlay p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .project-tech {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .tech-tag {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .project-link {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-arrow.prev {
        left: 10px;
    }
    
    .carousel-arrow.next {
        right: 10px;
    }
}

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

.tier-card {
    background: var(--light-bg);
    padding: 25px 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.tier-card:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 59, 102, 0.1);
}

.tier-card.featured {
    border-color: var(--secondary);
    background: rgba(16, 185, 129, 0.05);
    transform: scale(1.05);
}

.tier-card.featured:hover {
    transform: scale(1.05) translateY(-3px);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.tier-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.tier-card.featured .tier-icon {
    color: var(--secondary);
}

.tier-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.tier-card p {
    font-size: 14px;
    color: var(--gray);
    margin: 10px 0 15px;
}

.tier-label {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.tier-card.featured .tier-label {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

@media (max-width: 768px) {
    .pricing-tiers {
        grid-template-columns: 1fr;
    }
    
    .tier-card.featured {
        transform: scale(1);
    }
    
    .tier-card.featured:hover {
        transform: translateY(-3px);
    }
}