/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    /* Paleta Corporativa */
    --cyan: #00A9E0;        /* Azul brillante del logo */
    --navy: #003B5C;        /* Azul oscuro para confianza médica */
    --navy-light: #004b7a;
    --white: #ffffff;
    
    /* Grises y Fondos */
    --bg-light: #F8FAFC;    /* Gris muy suave para fondos de sección */
    --border-color: #E2E8F0;
    --text-main: #2D3748;
    --text-muted: #718096;

    /* Efectos */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgb(0, 75, 122, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

ul { list-style: none; }

/* ==========================================================================
   LAYOUT Y GRID SYSTEM (Sustituye a Bootstrap antiguo)
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 50px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-navy { background-color: var(--navy); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.custom-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- PRELOADER STYLE --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Fondo blanco puro */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.active {
    display: flex;
    opacity: 1;
}

.loader-content {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El círculo giratorio */
.medical-spinner {
    width: 160px;
    height: 160px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

/* El logo pulsando en el centro */
.loader-logo {
    width: 75%;
    height: auto;
    animation: pulse 1.2s ease-in-out infinite;
    z-index: 10;
}

/* Animaciones */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Clase para ocultarlo */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.top-bar {
    background: var(--navy);
    padding: 10px 0;
}

.header-padding {
    padding: 0 40px;
    max-width: 100%;
}

.top-links {
    display: flex;
    gap: 35px;
}

.top-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-decoration: none;
}

.top-links a:hover {
    color: var(--cyan);
    text-decoration: none;
}

.top-links img {
    padding-right: 5px;
}

.logo-bar {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo img { 
    height: 60px;
}

.header-navigation-row {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-row-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 60px;
}

.main-nav {
    flex: 0 0 auto; /* El menú ocupa solo su espacio necesario */
}

.nav-list {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list > li > a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--navy);
    padding: 10px 5px;
    white-space: nowrap;
}

/* Buscador Moderno */
.search-container {
    flex: 1;
    max-width: 450px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 4px 4px 4px 15px;
}

.search-input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: var(--cyan);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

/* Menú de Navegación */
.main-nav .nav-list {
    display: flex;
    justify-content: center;
}

.nav-list > li > a {
    padding: 20px;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-list > li:hover > a { 
    color: var(--cyan);
    text-decoration: none;
}

/* NAV Links con icono*/
.nav-link-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
}

.nav-link-icon img {
    width: 32px;
    height: 32px;
}

.nav-link-icon:hover {
    color: var(--cyan);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow);
    display: none;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
}

.dropdown:hover .dropdown-content { 
    display: block;
}
.dropdown-content li a {
    padding: 12px 20px;
    display: block;
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: none;
}

.dropdown-content li a:hover {
    background: var(--bg-light);
    color: var(--cyan);
    text-decoration: none;
}

.dropdown-user {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    background: #ffffff;
    border-radius: 12px;
    padding: 8px 0;
    list-style: none;
    min-width: 200px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;

    display: none;
    z-index: 1000;
}

/* Mostrar al hacer hover */
.dropdown-user:hover .user-dropdown-menu {
    display: block;
}

.user-dropdown-menu li{
    text-align: center;
}

/* Estilo de links */
.user-dropdown-menu li a,
.user-dropdown-menu li button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--navy);
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
}

.user-dropdown-menu li a:hover,
.user-dropdown-menu li button:hover {
    background: rgba(0, 169, 224, 0.08); /* tu cyan suave */
    color: var(--cyan);
}

/* Especificos*/
.admin-link {
    color: var(--cyan);
    font-weight: 600;
}

.logout-form {
    margin: 0;
}

.logout-btn {
    color: #dc3545 !important;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.08) !important;
}

/* ==========================================================================
   COMPONENTES UI (Modernos)
   ========================================================================== */

/* Botones Médicos */
.btn-medical {
    display: inline-block;
    padding: 12px 30px;
    background: var(--cyan);
    color: white;
    border-radius: 40px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    border: 2px solid var(--cyan);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-medical:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
}

.btn-outline:hover {
    background: var(--cyan);
    color: white;
}

/* Cards Modernas */
.modern-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-circle {
    width: 85px;
    height: 85px;
    background: var(--bg-light);
    color: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.icon-circle img {
    width: 75%;      /* Ajusta este porcentaje según qué tan grande quieras el icono dentro del círculo */
    height: auto;
    max-height: 60%; /* Evita que la imagen se estire verticalmente */
    object-fit: contain; /* Mantiene la proporción de la imagen sin deformarla */
    display: block;
}

.icon-box {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    color: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.icon-box img {
    width: 80%;      /* Ajusta este porcentaje según qué tan grande quieras el icono dentro del círculo */
    height: auto;
    max-height: 60%; /* Evita que la imagen se estire verticalmente */
    object-fit: contain; /* Mantiene la proporción de la imagen sin deformarla */
    display: block;
}

/* Opcional: Si quieres que la imagen ocupe TODO el círculo sin fondo de color */
.icon-box.full-img {
    background: transparent;
    padding: 0;
}

.icon-box.full-img img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el círculo */
    border-radius: 50%; /* Asegura que la imagen también sea circular */
}

/* Breadcrumbs / Page Titles */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 30px 0;
    color: white;
    text-align: center;
}

.breadcrumb-section h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 10px;
}

/* ==========================================================================
   PÁGINAS ESPECÍFICAS
   ========================================================================== */

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.main-slider {
    position: relative;
    height: 100%;
}

.slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide-item.active {
    opacity: 1;
    z-index: 2;
}

/* Botones */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 5;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
}

/* Productos Médicos */
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);

    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-img {
    height: 260px;
    background: #f1f5f9;

    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h4 {
    margin: 10px 0;
    font-size: 18px;
}

.product-info .category {
    font-size: 14px;
    color: var(--cyan);
    font-weight: 700;
    text-transform: uppercase;
}

.product-info .description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-info .price {
    font-size: 18px;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 15px;
}

.product-footer {
    margin-top: auto;
}

/* Formularios Modernos */
.modern-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.modern-form input, 
.modern-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    margin-bottom: 20px;
}

.modern-form input:focus, 
.modern-form textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.1);
}

.modern-form textarea { height: 150px; resize: none; }

.grid-5-centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.grid-5-centered > .modern-card {
    flex: 0 1 calc(33.333% - 20px); 
    min-width: 300px;
}

/* =============================================
   ESTILOS ESPECÍFICOS PARA "QUIÉNES SOMOS"
   ============================================= */

.split-view {
    display: flex;
    align-items: center;
    gap: 60px;          
    margin-top: 5px;
}

.view-image {
    flex: 1;
}

.view-content {
    flex: 1;
}

.view-content h3 {
    font-size: 20px;
}

.view-content h2 {
    font-size: 20px;
    text-align: center;
}

.view-content p {
    font-size: 16px;
    text-align: justify;
}

.rounded-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}

.subtitle {
    display: block;
    color: var(--cyan);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.check-list {
    margin-top: 25px;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 550;
}

.check-list li::before {
    content: "\f00c";
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    color: var(--cyan);
    font-weight: 900;
}

/* =============================================
   ESTILOS ESPECÍFICOS PARA "MISION Y VISION"
============================================= */

.row-reverse {
    flex-direction: row-reverse !important;
}

.mission-vision {
    padding-top: 40px;
}

.mission-vision .split-view {
    align-items: stretch;
}

.mission-vision .view-image,
.mission-vision .view-content {
    flex: 1;
    display: flex;
}

.mission-vision .rounded-img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 20px 40px rgba(0, 59, 92, 0.15);
}

.mission-vision .featured-card {
    position: relative;
    min-height: 300px;
    height: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 40px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0, 59, 92, 0.15);
    overflow: hidden;
}

.mission-vision .featured-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--cyan);
    border-radius: var(--radius) 0 0 var(--radius);
}

.mission-vision .featured-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.mission-vision .featured-card p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-main);
}

/* ===============================
   TABLA MODERNA
=================================*/

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead {
    background: var(--navy);
    color: #fff;
}

.table-modern th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

.table-modern td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    color: #333;
}

.table-modern td.center {
    text-align: center;
}

/* Hover sutil SOLO en filas */
.table-modern tbody tr:hover {
    background: var(--bg-light);
}

/* --- UTILIDADES DE CARDS Y TABLAS --- */
.no-padding { padding: 0 !important; }
.overflow-hidden { overflow: hidden; }
.card-title-border { margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.separator { margin: 25px 0; border: none; border-top: 1px solid var(--border-color); }
.mt-20 { margin-top: 20px; }
.mt-15 { margin-top: 15px; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.small { font-size: 14px; }

/* --- COMPONENTES DE PEDIDOS --- */
.status-pill {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.status-pill-large {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-small {
    padding: 8px 18px;
    font-size: 12px;
}

.header-with-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.back-link {
    color: white;
    font-size: 24px;
}

.info-list p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Alert Boxes */
.alert-box {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 5px solid;
}

.alert-danger {
    background: #fff5f5;
    border-color: #e53e3e;
    color: #c53030;
}

.alert-danger p {
    color: #721c24;
    font-style: italic;
    margin-top: 5px;
}

/* Resumen de Productos */
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bg-light);
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-info small {
    color: var(--text-muted);
}

.item-price {
    font-weight: 600;
    color: var(--navy);
}

/* Ticket Box de Totales */
.ticket-box {
    margin-top: 20px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ticket-box .custom-flex-between {
    margin-bottom: 8px;
    font-size: 15px;
}

.dashed-line {
    border: none;
    border-top: 2px dashed #cbd5e0;
    margin: 15px 0;
}

.total-row {
    font-size: 1.3rem !important;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0 !important;
}

/* Empty States */
.icon-empty-state {
    font-size: 60px;
    color: var(--border-color);
    margin-bottom: 20px;
}

/* ===============================
   BADGES DE ESTATUS
=================================*/

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

/* ===============================
        TOAST Y MODALES 
=================================*/

/* --- TOAST NOTIFICATION (Mensaje superior) --- */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: auto;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-item {
    pointer-events: auto;
    background: white;
    padding: 15px 25px;
    border-radius: 50px; /* Estilo píldora */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid var(--cyan);
    animation: toastSlideDown 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transition: all 0.3s ease;
}

@keyframes toastSlideDown {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.toast-item i {
    font-size: 20px;
    color: var(--cyan);
}

.toast-item.success { border-left-color: #2ecc71; }
.toast-item.success i { color: #2ecc71; }

.toast-text {
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
}

/* --- MODAL CLIENTE (Centro) --- */
/* Colores Sólidos para Iconos */
.modal-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    margin: 0 auto 20px;
    color: white; /* Icono siempre blanco */
}

.icon-success { 
    background-color: #2ecc71; /* Verde esmeralda sólido */
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3); 
}

.icon-danger { 
    background-color: #e74c3c; /* Rojo sólido */
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3); 
}

/* Tipografía del Modal */
.admin-modal-content h3 {
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 10px;
}

.admin-modal-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Botón de Confirmación */
.btn-confirm {
    background-color: var(--navy);
    color: white;
    width: 100%;
    max-width: 200px;
    border-radius: 50px;
    padding: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm:hover {
    background-color: var(--cyan);
    transform: translateY(-2px);
}

.client-modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 59, 92, 0.8); /* Navy transparente */
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 100010;
    padding: 20px;
}

.client-modal-content {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.btn-client-modal {
    background: var(--cyan);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.2s;
}

.btn-client-modal:hover { background: var(--navy); transform: translateY(-2px); }

/* ===============================
   PAGINACIÓN (opcional mejora visual)
=================================*/

.pagination {
    display: flex;
    gap: 8px;
}

.pagination .page-link {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    color: var(--navy);
}

.pagination .active .page-link {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.main-footer {
    background: #1a1a1a;
    color: var(--cyan);
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column h4 {
    color: var(--azul-cyan);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    flex-grow: 1;
}

.newsletter-form button {
    background: var(--azul-cyan);
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    color: white;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    font-size: 18px;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--azul-cyan);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #111;
    padding: 20px 0;
    font-size: 13px;
    color: #777;
    border-top: 1px solid #222;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .nav-list { display: none; }
    .hero-text h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .custom-flex-between { flex-direction: column; gap: 20px; text-align: center; }
    .logo-bar .container { flex-direction: column; }
    .search-form { max-width: 100%; margin-top: 20px; }
    .modern-form .form-row { grid-template-columns: 1fr; }
    .section-padding { padding: 50px 0; }
    .split-view { display: flex; flex-direction: column; }
}

@media (max-width: 1100px) {
    .nav-list {
        display: none;
    }
    .main-row-flex {
        justify-content: space-between;
    }
    .search-container {
        max-width: 300px;
    }
}

@media (max-width: 992px) {
    .grid-5-centered > .modern-card {
        flex: 0 1 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .grid-5-centered > .modern-card {
        flex: 0 1 100%;
    }
}