/* ============================================================
   Estilos personalizados para Pranagen Internacional
   ============================================================ */

:root {
    --color-primary: #0a5f6f;
    --color-secondary: #1d767d;
    --color-accent: #087e8b;
    --color-neutral-light: #e9f1f0;
    --color-neutral-dark: #21372b;
    --color-gray: #a4b6b1;
    --color-blanco: #fffff;
    --font-primary: 'Lato', sans-serif;
}

* {
    font-family: var(--font-primary);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-blanco);
}

body {
    color: var(--color-neutral-dark);
    background-color: #ffffff;
}

/* Navegación */
.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
}

.navbar .nav-link {
    color: var(--color-neutral-dark) !important;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: var(--color-primary) !important;
}

/* Botones */
.btn {
    border-radius: 30px;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--color-primary) !important;
}

/* Tarjetas */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    border-radius: 10px 10px 0 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 95, 111, 0.6);
    z-index: -1;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 900;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.1rem;
}

/* Secciones */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 5px 15px;
    font-weight: 600;
}

/* Formularios */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(10, 95, 111, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--color-neutral-dark);
    margin-bottom: 8px;
}

/* Tabla */
.table {
    border-collapse: collapse;
}

.table thead th {
    background-color: var(--color-neutral-light);
    color: var(--color-primary);
    font-weight: 700;
    border: none;
    padding: 15px;
}

.table tbody td {
    padding: 12px 15px;
    border-color: #eee;
}

.table tbody tr:hover {
    background-color: var(--color-neutral-light);
}

/* Alertas */
.alert {
    border-radius: 5px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
footer {
    background-color: var(--color-neutral-dark);
    color: white;
    margin-top: 60px;
}

footer h5 {
    color: white;
}

footer a {
    transition: color 0.3s;
}

footer a:hover {
    color: var(--color-accent) !important;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Utilidades */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.bg-primary-light {
    background-color: var(--color-neutral-light);
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Carrusel de Banner */
.carousel-section {
    margin-bottom: 0;
    padding: 0;
}

.carousel {
    background-color: #f0f0f0;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    bottom: 30px;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(10, 95, 111, 0.5);
    width: 50px;
    border-radius: 5px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(10, 95, 111, 0.8);
}

.carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.carousel-indicators .active {
    background-color: rgba(10, 95, 111, 1);
}

/* Header mejorado - Estilos adicionales */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
}

.navbar-custom .navbar-brand {
    margin-right: 0;
    padding: 0;
}

.navbar-custom .navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-custom .navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 30px;
}

.navbar-custom .nav-link {
    color: var(--color-neutral-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0 !important;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--color-primary) !important;
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 8px 15px;
    width: 250px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10, 95, 111, 0.1);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: var(--color-neutral-dark);
}

.search-box input::placeholder {
    color: var(--color-gray);
}

.search-box i {
    color: var(--color-gray);
    margin-right: 10px;
    font-size: 1rem;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.navbar-icons a,
.navbar-icons button {
    color: var(--color-neutral-dark);
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.navbar-icons a:hover,
.navbar-icons button:hover {
    color: var(--color-primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.cart-icon-wrapper {
    position: relative;
}

@media (max-width: 1024px) {
    .navbar-custom .navbar-nav {
        position: static;
        transform: none;
        gap: 15px;
    }

    .search-box {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .navbar-custom .navbar-nav {
        position: static;
        transform: none;
        gap: 0;
        flex-direction: column;
        padding: 15px 0;
    }

    .navbar-custom .nav-link {
        padding: 10px 0 !important;
    }

    .search-box {
        width: 100%;
        margin: 15px 0;
    }

    .navbar-icons {
        gap: 15px;
    }

    .navbar-icons a,
    .navbar-icons button {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .navbar-custom .navbar-brand img {
        height: 40px;
    }

    .search-box {
        width: 100%;
        font-size: 0.85rem;
    }

    .navbar-icons {
        gap: 10px;
    }

    .navbar-icons a,
    .navbar-icons button {
        font-size: 1rem;
    }
}
