/* Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.navbar nav ul {
    display: flex;
    list-style: none;
}

.navbar nav ul li {
    margin-left: 20px;
}

.navbar nav ul li a {
    color: #0b2545;
    text-decoration: none;
    font-weight: bold;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background-color: transparent;
    color: #0b2545;
    border: 2px solid #0b2545;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-register {
    background-color: #f26419;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* HERO */
.hero-puerto {
    background: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat !important;
    min-height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay-puerto {
    background: linear-gradient(90deg, rgba(11, 37, 69, 0.95) 0%, rgba(11, 37, 69, 0.6) 65%, rgba(11, 37, 69, 0.1) 100%);
    width: 100%;
    height: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 0 6%;
}

.hero-content-puerto {
    max-width: 650px;
    text-align: left !important;
    color: white;
}

.hero-badge {
    display: inline-block;
    background-color: #f26419;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content-puerto h1 {
    font-size: 2.8rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content-puerto p {
    font-size: 1.15rem;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.btn-primary, .btn-submit {
    background-color: #f26419;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
}

/* SECCIÓN QUIÉNES SOMOS */
.about-section {
    padding: 60px 5%;
    background-color: #ffffff;
    text-align: center;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-subtitle {
    font-size: 1.25rem;
    color: #f26419;
    font-weight: bold;
    margin-bottom: 20px;
}

.about-text-content {
    text-align: justify;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 35px;
}

.about-text-content p {
    margin-bottom: 15px;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.about-card {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.about-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.card-caption {
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0b2545;
}

.mision-vision-container {
    margin-top: 30px;
}

.mision-vision-container h3 {
    color: #0b2545;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.img-mision-vision {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* Servicios */
.services {
    padding: 60px 5%;
    text-align: center;
    background-color: #f4f4f9;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.section-secondary-logo {
    height: 45px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* CALCULADORA */
.calculator-section {
    padding: 60px 5%;
    background-color: #f8fafc;
    text-align: center;
}

.calculator-container {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.calc-subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.calc-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.calc-tab {
    padding: 10px 20px;
    border: 2px solid #0b2545;
    background: transparent;
    color: #0b2545;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-tab.active, .calc-tab:hover {
    background: #0b2545;
    color: white;
}

.calc-content {
    display: none;
    text-align: left;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 6px;
    background: #fafafa;
}

.calc-content.active {
    display: block;
}

.calc-content h3 {
    text-align: center;
    color: #222;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.calc-form-group {
    margin-bottom: 15px;
}

.calc-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.calc-form-group input[type="text"],
.calc-form-group input[type="number"],
.calc-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.radio-group-calc {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    font-size: 0.9rem;
}

.checkbox-group label {
    font-size: 0.85rem;
    font-weight: normal;
}

.btn-calc-submit {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin: 15px 0 20px;
    transition: background 0.2s;
}

.btn-calc-submit:hover {
    background-color: #218838;
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-result-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
}

.calc-result-field input {
    background-color: #eef2f6 !important;
    font-weight: bold;
    color: #0b2545;
}

.highlight-total input {
    background-color: #e2f0d9 !important;
    color: #155724;
    font-size: 1.1rem;
}

/* BOX ARTÍCULOS PROHIBIDOS */
.prohibited-box {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.prohibited-box h4 {
    color: #991b1b;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.prohibited-box p {
    font-size: 0.82rem;
    color: #7f1d1d;
    line-height: 1.4;
}

.calc-disclaimer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #333;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.calc-disclaimer h4 {
    font-size: 1rem;
    color: #0b2545;
}

.note-highlight {
    color: #d9530f;
    font-weight: bold;
    margin-top: 8px;
    font-size: 0.8rem;
}

.calc-disclaimer-aereo {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #444;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.calc-disclaimer-aereo ol {
    margin-left: 20px;
    margin-top: 5px;
}

/* Contacto */
.contact {
    padding: 60px 5%;
    text-align: center;
}

.quote-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-form input, .quote-form select, .quote-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

/* WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-btn img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Footer */
footer {
    background-color: #0b2545;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 45px;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
}

.instagram-btn img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

/* MODALES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
}

.modal-large { max-width: 700px; }
.modal-extra-large { max-width: 1100px; }

.close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 25px;
    cursor: pointer;
}

.forgot-pass-container {
    margin: 10px 0;
    text-align: right;
}

.forgot-pass-link {
    color: #f26419;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

.dashboard-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-factura {
    background-color: #0284c7;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-factura:hover {
    background-color: #0369a1;
}

.user-badge-info {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 5px;
    display: inline-block;
}

.btn-logout {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: #b91c1c;
}

/* Tarjetas de Direcciones */
.addresses-container {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warehouse-card {
    background-color: #f8fafc;
    border-left: 4px solid #f26419;
    padding: 12px;
    border-radius: 4px;
    text-align: left;
}

.card-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.btn-copy {
    background-color: #0b2545;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: bold;
}

.warehouse-card h4 { color: #0b2545; font-size: 0.95rem; }
.warehouse-card p { font-size: 0.85rem; color: #444; }

.code-tag {
    background-color: #0b2545;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

/* TABLA TIPO INGRESO */
.table-responsive-container {
    overflow-x: auto;
    margin-top: 15px;
}

.ingresos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.ingresos-table th {
    background-color: #4a4a4a;
    color: white;
    padding: 10px;
    font-weight: 600;
}

.ingresos-table td {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.highlight-recibo {
    color: #d97706;
    font-weight: bold;
}

.expedidor-red {
    color: #dc2626;
    font-weight: 600;
}

.green-val {
    color: #16a34a;
    font-weight: bold;
}

.empty-warehouse, .loading-data {
    text-align: center !important;
    padding: 30px !important;
    color: #64748b;
    font-style: italic;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.form-grid input, .form-grid select, .full-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.btn-block { width: 100%; margin-top: 10px; }
