/* =========================================
VARIABLES DE COLOR (Basadas en el Logo Happy Clean)
   ========================================= */
:root {
    --hc-azul-oscuro: #0a4b95; /* Color del texto "CLEAN" */
    --hc-celeste: #1a9add;    /* Color de la gota de agua */
    --hc-amarillo: #f5a821;   /* Color del texto "HAPPY" y escoba */
    --hc-fondo: #f4f7f6;      /* Gris azulado muy claro para frescura */
    --hc-texto: #333333;
    --hc-blanco: #ffffff;
    --hc-borde: #e0e6ed;      /* Borde un poco más azulado/limpio */
    --hc-rojo: #dc3545;       /* Para borrar */
    --hc-verde: #28a745;      /* Para confirmar/agregar */
}

/* =========================================
RESET Y TIPOGRAFÍA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Fundamental para evitar que los padding rompan los anchos */
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--hc-fondo);
    color: var(--hc-texto);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Para que el footer se quede abajo */
}

a {
    text-decoration: none;
    color: var(--hc-azul-oscuro);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hc-celeste);
}

main {
    flex: 1;
    padding-bottom: 40px;
}

/* =========================================
CONTENEDORES Y ESTRUCTURA (Flexbox)
   ========================================= */
.hc-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.hc-center-vh {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-flex {
    display: flex;
    gap: 20px;
}

.hc-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hc-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.hc-flex-wrap { 
    flex-wrap: wrap; 
}

/* =========================================
TARJETAS (Cards) - Estilo más suave y amigable
   ========================================= */
.hc-card {
    background: var(--hc-blanco);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(10, 75, 149, 0.08);
    padding: 30px;
    border: 1px solid var(--hc-borde);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hc-card:hover {
    box-shadow: 0 12px 25px rgba(10, 75, 149, 0.12);
}

.hc-card-small {
    width: 100%;
    max-width: 400px;
}

.hc-card-medium {
    width: 100%;
    max-width: 600px;
}

.hc-card-center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hc-card-header {
    background-color: var(--hc-azul-oscuro);
    color: var(--hc-blanco);
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin: -30px -30px 25px -30px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Tarjetas de productos (Flexbox interno) */
.hc-card-producto {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hc-card-acciones {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.hc-img-card {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    padding: 10px;
    background-color: var(--hc-fondo);
    border-radius: 8px;
}

.hc-img-destacado {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.hc-card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.hc-card-desc {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* =========================================
ESTILOS PARA DETALLE DE PRODUCTO
   ========================================= */
.hc-product-layout {
    display: flex;
    flex-wrap: wrap; 
    gap: 30px;
}

.hc-product-img-wrapper {
    flex: 1;
    min-width: 300px;
    min-height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: var(--hc-fondo);
    border-radius: 12px;
    border: 1px solid var(--hc-borde);
}

.hc-product-img-large {
    width: 100%;       
    height: 100%;      
    max-height: 350px; 
    object-fit: contain; 
    transition: transform 0.3s ease;
}

.hc-product-img-large:hover {
    transform: scale(1.05); 
}

.hc-product-info {
    flex: 1; 
    min-width: 300px;
    padding: 10px 20px; 
    display: flex; 
    flex-direction: column;
}

.hc-badge-start {
    align-self: flex-start; 
    margin-bottom: 20px;
}

.hc-price-large {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--hc-azul-oscuro);
}

.hc-price-text { font-size: 1.2rem; font-weight: bold; color: var(--hc-azul-oscuro); }

.hc-product-desc {
    margin-top: 15px; 
    flex-grow: 1;
    font-size: 1.1rem;
    color: #555;
}

.hc-product-actions {
    border-top: 2px dashed var(--hc-borde); 
    padding-top: 25px;
    margin-top: 20px;
}

.hc-img-thumbnail {
    max-width: 80px; 
    max-height: 80px; 
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--hc-borde);
    padding: 5px;
    background: #fff;
}

/* =========================================
BOTONES - Con efecto de elevación (Lift)
   ========================================= */
.hc-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 30px; /* Botones bien redondos como las gotas */
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.hc-btn-primary {
    background-color: var(--hc-azul-oscuro);
    color: var(--hc-blanco);
    box-shadow: 0 4px 10px rgba(10, 75, 149, 0.3);
}
.hc-btn-primary:hover { 
    background-color: var(--hc-celeste); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 154, 221, 0.4);
}

.hc-btn-secondary {
    background-color: var(--hc-amarillo);
    color: var(--hc-blanco);
    box-shadow: 0 4px 10px rgba(245, 168, 33, 0.3);
}
.hc-btn-secondary:hover { 
    filter: brightness(1.1); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 168, 33, 0.4);
}

.hc-btn-danger {
    background-color: var(--hc-rojo);
    color: var(--hc-blanco);
}
.hc-btn-danger:hover { 
    filter: brightness(0.9); 
    transform: translateY(-2px);
}

.hc-btn-outline {
    background-color: transparent;
    border: 2px solid var(--hc-azul-oscuro);
    color: var(--hc-azul-oscuro);
}
.hc-btn-outline:hover {
    background-color: var(--hc-azul-oscuro);
    color: var(--hc-blanco);
    transform: translateY(-2px);
}

.hc-btn-small { 
    padding: 8px 15px; 
    font-size: 0.8rem; 
}
.hc-w-100 { width: 100%; }

/* =========================================
ESTILOS PARA HISTORIA (NOSOTROS)
   ========================================= */
.hc-story-text {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-size: 1.35rem; /* Aumentado frente al 1.2rem base */
    font-weight: 500;
    color: #4a5568;
    line-height: 1.85;
}

/* =========================================
FORMULARIOS
   ========================================= */
.hc-form-group {
    margin-bottom: 20px;
}

.hc-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--hc-azul-oscuro);
}

.hc-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--hc-borde);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}
.hc-input:focus {
    outline: none;
    border-color: var(--hc-celeste);
    background-color: var(--hc-blanco);
    box-shadow: 0 0 8px rgba(26, 154, 221, 0.2);
}

/* =========================================
TABLAS
   ========================================= */
.hc-table-container {
    overflow-x: auto;
    background: var(--hc-blanco);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--hc-borde);
}

.hc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.hc-table th {
    background-color: var(--hc-celeste);
    color: var(--hc-blanco);
    padding: 18px 15px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.hc-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--hc-borde);
}
.hc-table-id {
    font-weight: bold;
    color: var(--hc-azul-oscuro);
}
.hc-badge-superadmin { background-color: var(--hc-rojo) !important; }
.hc-badge-admin { background-color: var(--hc-celeste) !important; }
.hc-badge-user { background-color: #6c757d !important; }

.hc-form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}
.hc-input-select {
    width: auto !important;
    padding: 5px !important;
}

/* =========================================
CLASES PARA FORMULARIOS Y CONTENEDORES
   ========================================= */

.hc-flex-1 { flex: 1; }
.hc-img-preview-box {
    background-color: var(--hc-fondo); 
    padding: 10px; 
    border-radius: 5px; 
    text-align: center; 
    margin-bottom: 10px; 
    border: 1px solid var(--hc-borde);
}
.hc-img-preview { max-height: 120px; object-fit: contain; }
.hc-img-delete { max-height: 200px; max-width: 100%; object-fit: contain; }
.hc-text-left { text-align: left !important; }
.hc-ml-20 { margin-left: 20px; }

/* =========================================
UTILIDADES Y EXTRAS
   ========================================= */
.hc-text-center { text-align: center; }
.hc-text-left { text-align: left !important; }
.hc-text-primary { color: var(--hc-azul-oscuro); }
.hc-text-amarillo { color: var(--hc-amarillo); }
.hc-text-danger { color: var(--hc-rojo); }
.hc-text-muted { color: #8898aa; font-size: 0.95rem; margin-right: 15px; }

.hc-mt-20 { margin-top: 20px; }
.hc-mt-40 { margin-top: 40px; }
.hc-mt-auto { margin-top: auto; }
.hc-mb-20 { margin-bottom: 20px; }
.hc-fw-bold { font-weight: bold; }
.hc-col-full { grid-column: 1 / -1; }
.hc-icon-large { font-size: 3rem; margin-bottom: 15px; }

.hc-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}
.hc-alert-danger { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.hc-alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

.hc-badge {
    background-color: var(--hc-amarillo);
    color: var(--hc-blanco);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.hc-badge-center {
    align-self: center;
    margin-bottom: 10px;
}

.hc-form-perfil {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* =========================================
SECCIONES DEL HOME (Hero, Info, Destacados)
   ========================================= */
.hc-hero {
    background: linear-gradient(135deg, var(--hc-azul-oscuro), var(--hc-celeste));
    color: var(--hc-blanco);
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px; 
    margin-bottom: 50px;
    box-shadow: 0 10px 20px rgba(10, 75, 149, 0.2);
}

.hc-hero h1 {
    font-size: 2.8rem;
    color: var(--hc-amarillo);
    margin-bottom: 15px;
    font-weight: 900;
}

.hc-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hc-section {
    padding: 40px 0;
    margin-bottom: 20px;
}

.hc-section-title {
    text-align: center;
    color: var(--hc-azul-oscuro);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hc-section-subtitle {
    text-align: center;
    color: var(--hc-text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.hc-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.hc-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.hc-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.hc-bg-destacados {
    background-color: #eaf4fb;
    padding: 50px 30px;
    border-radius: 20px;
    border: 2px dashed var(--hc-celeste);
    margin: 40px 0;
}


.hc-card-celeste {
    background-color: #eaf4fb; 
    border-color: var(--hc-celeste); 
}

.hc-card-destacado {
    border-top: 5px solid var(--hc-amarillo);
    background: var(--hc-blanco);
}

.hc-feature-box {
    background: var(--hc-blanco);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.hc-feature-box:hover {
    transform: translateY(-5px);
}

.hc-feature-box i {
    font-size: 3rem;
    color: var(--hc-celeste);
    margin-bottom: 20px;
}

.hc-feature-box h5 {
    color: var(--hc-azul-oscuro);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.hc-location-img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* =========================================
  ESTILOS PARA LA SECCIÓN NOSOTROS
   ========================================= */
.hc-carousel-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}
.hc-carousel-img {
    width: 100%;
    max-width: 380px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.hc-about-text-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.hc-p-large {
    font-size: 1.2rem;
    line-height: 1.8;
}

.hc-maps-wrapper {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--hc-borde);
    min-height: 350px;
}
.hc-list-zones {
    list-style: none;
    padding: 0;
}
.hc-list-zones li {
    padding: 12px 0;
    border-bottom: 1px solid var(--hc-borde);
    font-size: 1.1rem;
}
.hc-list-zones li:last-child {
    border-bottom: none;
}

/* =========================================
  ESTILOS PARA PÁGINA DE ERROR Y MANTENIMIENTO
   ========================================= */
.hc-error-box {
    text-align: center;
    padding: 40px 20px;
    max-width: 650px;
    margin: 0 auto;
}

.hc-error-img {
    max-width: 100%;
    height: 280px;
    object-fit: contain;
    margin-bottom: 25px;
}

.hc-error-title {
    color: var(--hc-rojo);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hc-error-text {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 30px;
}

/* =========================================
CARRITO DE COMPRAS
   ========================================= */

.hc-cart-btn { 
  position: 
  relative; 
  margin-right: 
  5px; 
}

.hc-cart-badge { 
  position: absolute; 
  top: -8px; 
  right: -8px; 
  background-color: 
  var(--hc-rojo); 
  color: var(--hc-blanco); 
  border-radius: 50%; 
  padding: 2px 8px; 
  font-size: 
  0.75rem; 
  font-weight: 
  bold; 
}

/* Caja principal del total convertida en Flexbox */
.hc-cart-total-box { 
    background-color: #f8f9fa; 
    border: 2px dashed var(--hc-azul-oscuro); 
    padding: 20px 40px; /* Más espacio lateral para respirar */
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
}

/* Nueva clase para hacer el texto más grande y centrado */
.hc-cart-total-text {
    font-size: 1.8rem; /* Letra más grande y llamativa */
    margin: 0; 
    flex-grow: 1; /* Empuja al precio hacia la derecha */
    text-align: center; /* Centra el texto en el espacio sobrante */
}

/* =========================================
ESTILOS DEL HEADER Y LOGO (Actualizados)
   ========================================= */
.hc-header {
    background-color: var(--hc-blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.hc-header-container { 
    width: 95%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 10px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    position: relative; /* CLAVE para el centrado absoluto de la navegación en PC */
}

/* LOGO (Izquierda) */
.hc-header-left {
    display: flex;
    align-items: center;
    z-index: 2; 
}

.hc-logo {
    font-size: 1.8rem; 
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.hc-logo-icon { color: var(--hc-celeste); }
.hc-logo-text-1 { color: var(--hc-amarillo); }
.hc-logo-text-2 { color: var(--hc-azul-oscuro); }

/* ENVOLTORIO PARA CENTRO Y DERECHA */
.hc-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    flex: 1;
}

/* MENÚ DE NAVEGACIÓN (Centrado Absoluto en Pantalla) */
.hc-header-center {
    position: relative; 
    margin: 0 auto;     
    z-index: 1;
}

.hc-nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px; 
}

.hc-nav-links li a {
    color: var(--hc-azul-oscuro);
    font-weight: 600;
    font-size: 1.1rem; 
    padding: 8px 15px; 
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap; 
}

.hc-nav-links li a:hover,
.hc-nav-links li a.active {
    background-color: #f1f8fc;
    color: var(--hc-celeste);
}

/* CARRITO Y SESIÓN (Derecha) */
.hc-header-right {
    display: flex; 
    align-items: center; 
    gap: 12px; 
    z-index: 2;
}

.hc-user-greet { font-size: 1rem; color: #666; white-space: nowrap; }

.hc-link-ingresar {
    color: var(--hc-azul-oscuro);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 8px 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.hc-link-ingresar:hover { color: var(--hc-celeste); }

.hc-link-registrar {
    color: var(--hc-amarillo);
    font-weight: bold;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.hc-link-registrar:hover { color: var(--hc-celeste); background-color: #f1f8fc; }

/* Botón Hamburguesa Oculto por Defecto */
.hc-menu-btn {
    display: none; 
}

/* =========================================
DISEÑO DE FOOTER Y REDES SOCIALES
   ========================================= */
.hcfooter {
    background-color: var(--hc-blanco);
    border-top: 1px solid var(--hc-borde);
    padding: 30px 0;
    margin-top: auto; 
    text-align: left; 
}

.hc-footer-layout {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;
    width: 100%; 
}

.hc-footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end; 
}

.hc-footer-copy p {
    margin: 0;
    font-weight: bold;
    color: var(--hc-azul-oscuro);
    font-size: 1rem;
}

.hc-social-link {
    color: var(--hc-azul-oscuro);
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-instagram:hover { color: #E1306C; }
.hc-whatsapp:hover { color: #25D366; }


/* =========================================
ESTILOS PARA PANTALLA DE GRACIAS Y ALERTAS
   ========================================= */
.hc-fs-large { font-size: 1.1rem; }
.hc-fs-xlarge { font-size: 2.5rem; letter-spacing: 2px; }

/* Nuevo texto de seguimiento gigante y llamativo */
.hc-tracking-label {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Variante de Alerta Amarilla/Advertencia */
.hc-alert-warning { 
    background-color: #fff3cd; 
    color: #856404; 
    border: 1px solid #ffeeba; 
}

/* Iconos grandes en bloque */
.hc-icon-large-block { 
    font-size: 3rem; 
    margin-bottom: 15px; 
    display: block; 
}
.hc-icon-warning { color: #f5a821; }
.hc-icon-success { color: var(--hc-verde); }

/* Botón de WhatsApp Forzado */
.hc-btn-whatsapp {
    background-color: #25D366 !important;
    color: var(--hc-blanco) !important;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3) !important;
    display: inline-block;
    border: none;
    font-size: 1.1rem;
    padding: 15px 30px;
}
.hc-btn-whatsapp:hover {
    background-color: #1ebd5a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4) !important;
}

/* =========================================
BADGES (INSIGNIAS) PARA ESTADOS DE PEDIDO
   ========================================= */
.hc-badge-warning { background-color: #f5a821; color: #fff; } /* Pendiente */
.hc-badge-info { background-color: #17a2b8; color: #fff; } /* Aceptada */
.hc-badge-primary { background-color: var(--hc-celeste); color: #fff; } /* En Elaboración */
.hc-badge-success { background-color: var(--hc-verde); color: #fff; } /* Finalizado */
.hc-badge-danger { background-color: var(--hc-rojo); color: #fff; } /* Rechazado */
.hc-badge-default { background-color: #6c757d; color: #fff; }


/* =========================================
ESTILOS PARA DETALLES DE PEDIDOS DEL CLIENTE
   ========================================= */
.hc-detalle-pedido-cell {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--hc-borde) !important;
    padding: 0 !important;
}

.hc-detalle-pedido-box {
    padding: 15px 20px;
    border-left: 4px solid var(--hc-celeste);
    margin: 10px 20px 20px 20px;
    background-color: var(--hc-blanco);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hc-detalle-lista {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.hc-detalle-lista li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--hc-borde);
    font-size: 1.05rem;
}

.hc-detalle-lista li:last-child {
    border-bottom: none;
}

/* =========================================
   MODALES (VENTANAS EMERGENTES)
   ========================================= */
.hc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.hc-modal-overlay.active {
    display: flex;
}

.hc-modal-box {
    background-color: var(--hc-blanco);
    padding: 25px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hc-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--hc-rojo);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hc-modal-close:hover {
    transform: scale(1.1);
}

.hc-cliente-info {
    list-style-type: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.hc-cliente-info li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--hc-borde);
    font-size: 1.05rem;
    color: #444;
}

.hc-cliente-info li:last-child {
    border-bottom: none;
}

.hc-link-whatsapp {
    color: var(--hc-verde);
    font-weight: bold;
    text-decoration: none;
}

.hc-link-whatsapp:hover {
    text-decoration: underline;
}

/* =========================================
MODALES GRANDES Y SCROLL INTERNO
   ========================================= */
.hc-modal-box-large {
    background-color: var(--hc-blanco);
    padding: 25px 30px;
    border-radius: 12px;
    width: 95%;
    max-width: 650px; /* Más ancho que el modal estándar */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.hc-scrollable-content {
    max-height: 50vh; /* Ocupa máximo la mitad de la pantalla */
    overflow-y: auto;
    padding-right: 15px;
}

/* Estilo para la barra de scroll */
.hc-scrollable-content::-webkit-scrollbar { width: 8px; }
.hc-scrollable-content::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

/* Campos de solo lectura */
.hc-input-readonly {
    background-color: #e9ecef !important;
    cursor: not-allowed;
    color: #6c757d;
}

/* =========================================
   ESTILOS PARA TÉRMINOS Y PRIVACIDAD
   ========================================= */
.hc-legal-card {
    background: var(--hc-blanco);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(10, 75, 149, 0.08);
    border: 1px solid var(--hc-borde);
    margin-bottom: 40px;
}

.hc-legal-section {
    margin-bottom: 30px;
}

.hc-legal-section:last-child {
    margin-bottom: 0;
}

.hc-legal-title-main {
    font-size: 2.2rem;
    color: var(--hc-azul-oscuro);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hc-legal-subtitle-section {
    font-size: 1.3rem;
    color: var(--hc-azul-oscuro);
    margin-bottom: 12px;
    font-weight: 700;
}

.hc-legal-text {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.hc-legal-list {
    list-style-type: disc;
    padding-left: 25px;
    color: #4a5568;
    margin-bottom: 15px;
}

.hc-legal-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.hc-legal-badge-date {
    display: inline-block;
    background-color: var(--hc-fondo);
    color: var(--hc-azul-oscuro);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 25px;
    border: 1px solid var(--hc-borde);
}

@media (max-width: 576px) {
    .hc-legal-card {
        padding: 20px;
    }
    .hc-legal-title-main {
        font-size: 1.6rem;
    }
}


/* =========================================
   ESTILOS PARA DATOS DESPLEGABLES (PERFIL)
   ========================================= */
.hc-data-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hc-data-item {
    border-bottom: 1px dashed var(--hc-borde);
    padding: 12px 0;
}

.hc-data-item:last-child {
    border-bottom: none;
}

.hc-data-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hc-data-label {
    font-weight: 700;
    color: var(--hc-azul-oscuro);
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: block;
}

.hc-data-value {
    color: var(--hc-texto);
    font-size: 1.05rem;
    margin: 0;
}

.hc-data-value-empty {
    color: #a0aec0;
    font-style: italic;
}

.hc-btn-edit {
    background: none;
    border: none;
    color: var(--hc-celeste);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 5px 10px;
}

.hc-btn-edit:hover {
    transform: scale(1.15);
    color: var(--hc-azul-oscuro);
}

.hc-edit-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease, margin 0.35s ease;
    background-color: var(--hc-fondo);
    border-radius: 8px;
    padding: 0 15px;
    margin-top: 0;
    opacity: 0;
}

.hc-edit-dropdown.active {
    max-height: 250px;
    padding: 15px;
    margin-top: 15px;
    opacity: 1;
    border: 1px solid var(--hc-borde);
}

/* =========================================
LAYOUT PARA PERFIL (VERTICAL Y CENTRADO)
   ========================================= */
.hc-profile-layout {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* =========================================
RESPONSIVIDAD GLOBAL (Media Queries)
Garantiza compatibilidad con iPad, iPhone y Samsung
   ========================================= */

/* IPAD, TABLETS y CELULARES GRANDES (hasta 991px) */
@media (max-width: 991px) {
    /* Mostramos la Hamburguesa */
    .hc-menu-btn {
        display: block; 
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--hc-azul-oscuro);
        cursor: pointer;
        z-index: 1001; 
    }

    /* Convertimos el Wrapper en el Menú Desplegable Vertical */
    .hc-nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--hc-blanco);
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0; /* Oculto inicialmente con animación CSS pura */
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.08);
        z-index: 1000;
    }

    /* Cuando JavaScript le añade la clase 'active' */
    .hc-nav-wrapper.active {
        max-height: 600px; 
        padding: 30px 0;
    }

    /* Cancelamos el centrado absoluto en el menú de navegación para móviles */
    .hc-header-center {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .hc-nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hc-nav-links li { width: 100%; text-align: center; }
    .hc-nav-links li a { display: block; padding: 12px; }

    /* Acomodamos los botones de cuenta abajo del menú */
    .hc-header-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        justify-content: center;
    }

    /* === REPARACIÓN DEL FOOTER === */
    .hc-footer-layout {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hc-footer-social {
        justify-content: center;
        width: 100%;
    }

    /* Ajuste de grillas para iPad */
    .hc-grid-4, .hc-grid-3, .hc-grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* IPHONES y SAMSUNG (Pantallas más pequeñas, hasta 576px) */
@media (max-width: 576px) {
    .hc-logo {
        font-size: 1.5rem; 
    }
    .hc-hero h1 { font-size: 2.2rem; }
    .hc-hero p { font-size: 1rem; }
    .hc-price-large { font-size: 2.2rem; }
}

