/* Estilos para páginas institucionales */

/* Page Hero */
.page-hero {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.page-hero .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section.bg-dark {
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Two Column Layout */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.content-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stats Inline */
.stats-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.stat-box h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.info-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.contact-card small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.social-links-inline {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links-inline a {
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.social-links-inline a:hover {
    transform: scale(1.2);
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #e5e7eb;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Map Container */
.map-container {
    margin-top: 3rem;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.map-placeholder p {
    font-size: 1.5rem;
    margin: 0;
}

.map-placeholder small {
    color: rgba(255, 255, 255, 0.5);
}

/* Legal Content */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.legal-content p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #667eea;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.privacy-notice {
    margin-top: 3rem;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

/* FAQ Styles */
.faq-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-tab {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.faq-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.faq-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.faq-category {
    display: none;
}

.faq-category.active {
    display: block;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.5);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #667eea;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.faq-answer ul,
.faq-answer ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-footer {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
}

.faq-footer h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.faq-footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* Alerts */
.alert-success,
.alert-error {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-error p {
    margin: 0.3rem 0;
}

/* Responsive */
@media (max-width: 968px) {
    .page-hero .hero-title {
        font-size: 2.5rem;
    }

    .two-col-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .stats-inline {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .faq-categories {
        flex-direction: column;
    }

    .faq-tab {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .content-section {
        padding: 50px 0;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================
   PÁGINA DE ENVÍOS
   ========================================== */

/* Cobertura Grid */
.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.coverage-item {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.coverage-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.coverage-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Tabla de envíos */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.shipping-table th {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.shipping-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.shipping-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Tarjetas de precios */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.price-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.price-card.featured {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.price-card .badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-card h3 {
    margin-bottom: 1rem;
    color: #fff;
}

.price-card .price {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.price-card ul {
    list-style: none;
    padding: 0;
}

.price-card ul li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Transportadoras */
.carriers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.carrier-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.carrier-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* Pasos del proceso */
.process-steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 22px;
    top: 50px;
    bottom: -30px;
    width: 2px;
    background: rgba(102, 126, 234, 0.3);
}

.step-number {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #fff;
}

/* Opciones de rastreo */
.tracking-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tracking-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}

.tracking-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Formulario de rastreo */
.tracking-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tracking-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.tracking-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* Checklist */
.checklist {
    list-style: none;
    counter-reset: item;
    padding: 0;
}

.checklist li {
    counter-increment: item;
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.checklist li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
}

.checklist li strong {
    color: #667eea;
    display: block;
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #667eea;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.faq-item h3 {
    margin-bottom: 0.75rem;
    color: #fff;
}

/* Contacto */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
}

.contact-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.contact-item small {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn-chat {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 20px;
    margin-top: 3rem;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

/* Notas */
.note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
    border-radius: 5px;
}

/* Warning box */
.info-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-cards,
    .carriers-grid,
    .tracking-options,
    .features-grid,
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .tracking-form {
        flex-direction: column;
    }
    
    .step {
        gap: 1rem;
    }
}

