/* ===========================
   ENVIOS - CSS
   =========================== */

/* Hero Envios */
.hero-envios {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 8rem 0 6rem;
    overflow: hidden;
    position: relative;
}

.hero-envios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,25 50,50 T100,50 L100,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--white);
    background: rgba(255,255,255,0.2);
    padding: 0 0.5rem;
    border-radius: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--white);
    font-size: 1.2rem;
}

/* Shipping Showcase */
.shipping-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shipping-icon {
    font-size: 3rem;
    color: var(--white);
    animation: truck-move 3s ease-in-out infinite;
}

@keyframes truck-move {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

.shipping-path {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
}

.path-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.path-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 100%;
    width: 1.5rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.path-step.active:not(:last-child)::after {
    background: var(--white);
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.path-step.active .step-dot {
    background: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.path-step span {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.path-step.active span {
    opacity: 1;
    color: var(--white);
    font-weight: 600;
}

.package-icon {
    font-size: 2rem;
    color: var(--white);
    animation: package-bounce 2s ease-in-out infinite;
}

@keyframes package-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Cobertura */
.cobertura {
    padding: 6rem 0;
    background: var(--light-gray);
}

.cobertura-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.map-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-placeholder p {
    opacity: 0.9;
    margin: 0;
}

.map-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

.cobertura-details h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-family: var(--font-titles);
}

.zona-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.zona-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.zona-item:nth-child(1) {
    border-left-color: var(--primary-color);
}

.zona-item:nth-child(2) {
    border-left-color: var(--primary-color);
    opacity: 0.8;
}

.zona-item:nth-child(3) {
    border-left-color: var(--accent-color);
}

.zona-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.zona-icon.metropolitan {
    background: linear-gradient(135deg, var(--primary-color), rgba(225, 29, 72, 0.8));
}

.zona-icon.urban {
    background: linear-gradient(135deg, var(--secondary-color), rgba(31, 31, 31, 0.8));
}

.zona-icon.rural {
    background: linear-gradient(135deg, var(--accent-color), rgba(156, 163, 175, 0.8));
}

.zona-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-subtitles);
}

.zona-content p {
    color: var(--accent-color);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.zona-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Proceso de Envío */
.proceso-envio {
    padding: 6rem 0;
    background: var(--white);
}

.proceso-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 30px;
    top: 60px;
    bottom: -3rem;
    width: 2px;
    background: var(--accent-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.step-content > p {
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--accent-color);
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Opciones de Envío */
.opciones-envio {
    padding: 6rem 0;
    background: var(--light-gray);
}


.envio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.envio-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.envio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.envio-card.standard {
    border-color: var(--primary-color);
}

.envio-card.express {
    border-color: var(--accent-color);
}

.envio-card.local {
    border-color: var(--secondary-color);
}

.card-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.envio-card.standard .card-icon {
    background: var(--primary-color);
}

.envio-card.express .card-icon {
    background: var(--accent-color);
}

.envio-card.local .card-icon {
    background: var(--secondary-color);
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-badge.premium {
    background: var(--accent-color);
}

.card-content {
    padding: 0 2rem 2rem;
}

.card-price {
    text-align: center;
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.price-note {
    font-size: 0.85rem;
    color: var(--accent-color);
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--accent-color);
}

.card-features .feature-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.card-ideal {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    border-left: 3px solid var(--primary-color);
}

/* FAQ Envíos */
.faq-envios {
    padding: 6rem 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--light-gray);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid var(--accent-color);
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.faq-answer {
    padding: 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--accent-color);
    line-height: 1.6;
    margin: 0;
}

/* CTA Envíos */
.cta-envios {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a202c, #2d3748);
    color: white;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.cta-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Nuevas Opciones de Entrega */
.delivery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.delivery-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.delivery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.delivery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.delivery-card.primary {
    border-color: var(--primary-color);
}

.delivery-card.primary::before {
    background: var(--primary-color);
}

.delivery-card.secondary {
    border-color: var(--secondary-color);
}

.delivery-card.secondary::before {
    background: var(--secondary-color);
}

.delivery-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.delivery-card.primary .delivery-icon {
    background: linear-gradient(135deg, var(--primary-color), rgba(225, 29, 72, 0.8));
}

.delivery-card.secondary .delivery-icon {
    background: linear-gradient(135deg, var(--secondary-color), rgba(31, 31, 31, 0.8));
}

.delivery-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: var(--font-titles);
}

.delivery-content p {
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.delivery-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--accent-color);
}

.delivery-features .feature i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.delivery-info {
    margin-top: 3rem;
}

.info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), rgba(225, 29, 72, 0.8));
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: var(--font-subtitles);
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-content li {
    color: var(--accent-color);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.info-content li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Opciones de Entrega Minimalistas */
.delivery-options-minimal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.delivery-option {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.delivery-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(196, 30, 58, 0.2);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.option-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.option-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.time-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.time-badge.variable {
    background: var(--accent-color);
}

.delivery-option p {
    color: var(--accent-color);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.delivery-note {
    background: rgba(196, 30, 58, 0.05);
    border: 1px solid rgba(196, 30, 58, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    line-height: 1.5;
}

.delivery-note i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .shipping-showcase {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .shipping-path {
        flex-direction: column;
        gap: 1rem;
    }
    
    .path-step:not(:last-child)::after {
        top: 100%;
        left: 10px;
        width: 2px;
        height: 1rem;
    }
    
    .cobertura-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .map-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .timeline-step:not(:last-child)::after {
        left: 50%;
        top: 60px;
        transform: translateX(-50%);
    }
    
    .envio-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .zona-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cta-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .delivery-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-envios {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .cobertura,
    .proceso-envio,
    .opciones-envio,
    .faq-envios,
    .cta-envios {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .map-placeholder {
        padding: 3rem 1.5rem;
    }
    
    .map-placeholder i {
        font-size: 3rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .card-header {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    .cta-text h2 {
        font-size: 1.6rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .delivery-card {
        padding: 1.25rem;
    }
    
    .delivery-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .delivery-content h3 {
        font-size: 1.3rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}
