@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700;800&display=swap');

:root {
  --primary-color: #0F172A; /* Deep Navy */
  --secondary-color: #06B6D4; /* Vibrant Cyan/Teal */
  --accent-color: #38BDF8; /* Light Blue */
  --text-dark: #1E293B;
  --text-light: #F8FAFC;
  --bg-light: #F1F5F9;
  --bg-dark: #020617;
  --card-bg: #FFFFFF;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 75px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 75px; /* Adjust for Flash Note + Top Bar */
}

/* Flash Note */
.flash-note {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.82rem;
  font-weight: 500;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1002;
  height: 35px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}

.flash-note .nav-container {
  padding: 0 2rem;
}

.flash-note p {
  margin: 0;
}

.flash-note a {
  color: var(--secondary-color);
  font-weight: 700;
  margin-left: 5px;
  text-decoration: none;
}

.flash-note a:hover {
  text-decoration: underline;
}

.badge-new {
  background-color: #EF4444;
  color: white;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  margin-right: 8px;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Update Top Bar and Header position */
.top-bar { top: 35px; }
header { top: 75px; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Top Bar */
.top-bar {
  background-color: var(--secondary-color) !important;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  position: fixed;
  top: 35px;
  width: 100%;
  z-index: 1001;
  height: 40px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.top-bar-right a {
  margin-left: 10px;
}
.top-bar-right a:hover {
  text-decoration: underline;
}
.top-bar-social {
  margin-left: 15px;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  display: inline-block;
}
.top-bar-social:hover {
  transform: scale(1.2);
  color: var(--primary-color);
  text-decoration: none !important;
}

/* Navbar */
/* Navbar Modernizado */
/* Navbar Modernizado */
header {
  position: fixed;
  top: 0; /* Default a 0, se ajusta dinámicamente si hay top-bar */
  width: 100%;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 5000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease, top 0.4s ease;
  will-change: transform, top;
}

/* Clases Dinámicas para Scroll */
header.header-hidden {
  transform: translateY(-100%);
}

header.scrolled {
  background-color: rgba(11, 17, 32, 0.98);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 0.2rem 0;
}

/* Ajuste cuando SI existe top-bar y no hay scroll */
body.has-top-bar header:not(.scrolled) {
  top: 75px; 
}

@media (max-width: 768px) {
  body.has-top-bar header:not(.scrolled) {
    top: 110px; /* Ajuste para móviles que tienen top-bar más alto */
  }
  .nav-container {
    padding: 0.5rem 1rem;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
  display: flex;
  align-items: center;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo span {
  background: linear-gradient(135deg, var(--secondary-color), #38BDF8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
}

.mobile-menu-toggle, .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover, .menu-toggle:hover {
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .mobile-menu-toggle, .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0F172A;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 2px solid var(--secondary-color);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        max-width: none;
        width: 100%;
        font-size: 1.1rem;
        padding: 1rem;
    }
}

/* Divisor Vertical Premium */
.logo::after {
  content: '';
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
  margin-left: 2rem;
  display: block;
}

@media (max-width: 992px) {
  .logo::after { display: none; }
}

@media (min-width: 993px) {
  .nav-links {
    display: flex;
    flex-wrap: nowrap; /* Asegura visual estricta de una sola línea */
    gap: 1rem; /* Reduje el gap un poco para mejor cabida */
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 0 1rem;
  }
}

/* Espaciador invisible para empujar los enlaces al centro y el botón al extremo */
.nav-links::before {
  content: "";
  margin-right: auto;
}

/* Forzar botones de acción a la derecha */
.nav-links .btn-primary, 
.nav-links .logout-link {
  position: static;
  margin-left: auto !important;
  white-space: nowrap !important; /* El botón jamás debe saltar de línea */
  max-width: 150px !important; /* Espacio íntegro para el botón */
}

.nav-links a {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  padding: 6px 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  max-width: 110px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.nav-links a.comunidad-link:hover {
  text-shadow: 0 0 10px rgba(248, 177, 51, 0.5);
  background: rgba(248, 177, 51, 0.05);
}

/* Resalte de Comunidad Animal */
.nav-links a.comunidad-link {
  color: #F8B133 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(248, 177, 51, 0.2);
  padding: 8px 15px;
  border-radius: 50px;
  background: rgba(248, 177, 51, 0.05);
  box-shadow: 0 0 15px rgba(248, 177, 51, 0);
}

.nav-links a.comunidad-link:hover {
  background: rgba(248, 177, 51, 0.1);
  box-shadow: 0 0 15px rgba(248, 177, 51, 0.2);
  transform: translateY(-1px);
}

.nav-links a.comunidad-link::after {
  display: none;
}

/* Estándar de Botones Hikari */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 180px;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color) !important;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
}

/* Group Layout for buttons */
.btns-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .btns-group {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}
.btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color) !important;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Carousel Section */
.carousel-wrapper {
  height: calc(100vh - 40px);
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
  color: white;
}
.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  display: flex;
  align-items: center;
  z-index: 1;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}
.carousel-btn:hover {
  background: var(--secondary-color);
}
.carousel-btn.prev {
  left: 0;
}
.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active, .dot:hover {
  background: var(--secondary-color);
  transform: scale(1.2);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.hero-text-box h2 {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero-text-box .highlight {
  color: var(--secondary-color);
}
.hero-text-box p {
  font-size: 1.2rem;
  max-width: 500px;
  color: #CBD5E1;
}
.hero-text-box h3 {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 1.5rem;
}
.hero-text-box .small-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--secondary-color);
}

/* Nosotros Section */
.nosotros-section {
  padding: 5rem 2rem;
  background: #fff;
}
.nosotros-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.title-underline {
  width: 50px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 1rem 0 2rem 0;
}
.title-underline.center {
  margin: 1rem auto 2rem auto;
}
.nosotros-content p {
  margin-bottom: 1rem;
  color: #475569;
}
.nosotros-stats {
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  background: var(--bg-light);
  padding: 3rem 2rem;
  border-radius: 10px;
  border-bottom: 5px solid var(--secondary-color);
  text-align: center;
}
.nosotros-stats .stat-item h3 {
  font-size: 3rem;
  color: var(--primary-color);
  font-weight: 800;
}
.nosotros-stats .stat-item p {
  color: #64748B;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Services */
.services {
  padding: 5rem 2rem;
  background-color: var(--bg-light);
}
.section-title {
  font-size: 2.2rem;
  color: var(--primary-color);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px rgba(0,0,0,0.1);
}
.card-img-wrapper {
  overflow: hidden;
  height: 200px;
  border-bottom: 3px solid var(--secondary-color);
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-img {
  transform: scale(1.1);
}
.service-content {
  padding: 2rem;
}
.service-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.service-content p {
  color: #475569;
  font-size: 0.95rem;
}

/* Servicios Adicionales Split Layout (MAFBA style) */
.services-adicionales {
  padding: 5rem 2rem;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}
.adicionales-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}
.adicional-row {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.adicional-row.reverse {
  flex-direction: row-reverse;
}
.adicional-img-box {
  flex: 1;
  position: relative;
}
.adicional-img-box img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.adicional-img-box::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--secondary-color);
  z-index: -1;
  border-radius: 10px;
}
.adicional-row.reverse .adicional-img-box::before {
  left: auto;
  right: -20px;
}
.adicional-text {
  flex: 1;
}
.adicional-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.adicional-text p {
  color: #475569;
  margin-bottom: 1.5rem;
}
.link-more {
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.link-more:hover {
  text-decoration: underline;
}

/* Contact */
.contact-section {
  padding: 5rem 2rem;
  background-color: var(--primary-color);
  color: white;
}
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(6, 182, 212, 0.1);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-right: 1.5rem;
}
.info-item h4 {
  font-size: 1.1rem;
}
.info-item p {
  color: #94A3B8;
  font-size: 0.95rem;
}
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  color: white;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
}
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--primary-color);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover {
  transform: translateY(-2px);
}

.alert-message {
  display: none;
  padding: 1rem;
  border-radius: 5px;
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}
.alert-success {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.alert-error {
  background-color: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer (MAFBA styled) */
.footer-mafba {
  background-color: var(--bg-dark);
  color: #94A3B8;
  padding-top: 4rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.title-underline-small {
  width: 30px;
  height: 3px;
  background: var(--secondary-color);
  margin-bottom: 1.5rem;
}
.footer-links li, .footer-contact-list li {
  margin-bottom: 0.8rem;
}
.footer-links a:hover, .footer-contact-list a:hover {
  color: var(--secondary-color);
}
.footer-links i {
  color: var(--secondary-color);
  margin-right: 8px;
}
.footer-contact-list i {
  color: var(--secondary-color);
  margin-right: 10px;
  width: 15px;
}
.footer-bottom {
  background-color: #000;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* Social Icons Footer */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-link:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}
.social-link.facebook:hover {
  background: #1877F2;
  color: #fff;
}
.social-link.youtube:hover {
  background: #FF0000;
  color: #fff;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}
.wa-float:hover {
  transform: scale(1.1);
  color: white;
}

/* Login Page Preserved Styles */
.login-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--primary-color);
}
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}
.login-container {
  width: 100%;
  max-width: 450px;
  padding: 1rem;
}
.auth-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-header h1 {
  color: white;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.auth-header h1 span {
  color: var(--secondary-color);
}
.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #94A3B8;
}
/* Virtual Mascot CSS (Global & Mejorado) */
.virtual-pet {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    z-index: 1001; /* Above Top Bar if needed */
    cursor: pointer;
    transition: transform 0.2s ease-out;
    animation: floatPet 4s ease-in-out infinite;
    overflow: visible; /* Ensure bubble isn't clipped */
}
.pet-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 40% 40% 20% 20%;
    position: relative;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.4);
    border: 2px solid white;
    z-index: 2;
}
.pet-arm {
    position: absolute;
    width: 15px;
    height: 30px;
    background: white;
    border-radius: 10px;
    top: 30px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.pet-arm.left {
    left: -10px;
    transform: rotate(20deg);
}
.pet-arm.right {
    right: -10px;
    transform: rotate(-20deg);
}
.virtual-pet:hover .pet-arm.left {
    transform: rotate(140deg);
}
.virtual-pet:hover .pet-arm.right {
    transform: rotate(-140deg);
}
.pet-eye {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 25px;
    animation: blinkPet 4s infinite;
}
.pet-eye.left { left: 14px; }
.pet-eye.right { right: 14px; }
.pet-eye::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
}
.pet-mouth {
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
}
.pet-antenna {
    width: 4px;
    height: 18px;
    background: var(--secondary-color);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}
.pet-antenna::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -3px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
    animation: glow 2s infinite alternate;
}
.pet-bubble {
    position: absolute;
    top: -50px;
    left: 80px;
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-15px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--secondary-color);
    z-index: 3;
}
.pet-bubble.visible {
    opacity: 1;
    transform: translateX(0);
}
@keyframes floatPet {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes blinkPet {
    0%, 96%, 98% { transform: scaleY(1); }
    97% { transform: scaleY(0.1); }
}
@keyframes glow {
    from { box-shadow: 0 0 5px var(--secondary-color); }
    to { box-shadow: 0 0 15px var(--accent-color); }
}
.virtual-pet:hover .pet-mouth {
    height: 12px;
    width: 24px;
    border-radius: 0 0 24px 24px;
    bottom: 12px;
}
.virtual-pet:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
  .top-bar { 
    display: none; 
  }
  .flash-note { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 1002; 
    height: auto; 
    min-height: 35px; 
    padding: 5px 0; 
    transition: transform 0.3s ease;
  }
  header { 
    top: 35px !important; 
    position: fixed;
    transition: all 0.3s ease;
  }
  header.scrolled {
    top: 0 !important;
  }
  body { 
    padding-top: 95px; 
  }
  
  .nosotros-container { grid-template-columns: 1fr; }
  .nosotros-stats { flex-direction: column; gap: 1rem; }
  .adicional-row { flex-direction: column !important; }
  .contact-container { grid-template-columns: 1fr; }
  .hero-text-box h2 { font-size: 2.5rem; }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 2rem 0;
    z-index: 5100;
    gap: 1.5rem;
  }
  .nav-links .btn-primary, 
  .nav-links .logout-link {
    position: static;
    margin: 0 auto !important;
    width: 80%;
    text-align: center;
    justify-content: center;
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .virtual-pet { display: none; }
}

@media (max-width: 480px) {
  .flash-note { font-size: 0.75rem; min-height: 50px; }
  header { top: 50px; }
  body { padding-top: 110px; }
  .promo-mockup { transform: scale(0.7); margin-top: -2rem; }
  .promo-text h3 { font-size: 1.5rem; }
}

/* ── Promo Section (HikariApp) ── */
.promo-section {
  padding: 8rem 0;
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent),
              radial-gradient(circle at bottom left, rgba(15, 23, 42, 1), #020617);
  color: white;
  position: relative;
  overflow: hidden;
}

.promo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.promo-text h3 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.promo-text p {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 2rem;
}

.promo-features {
  margin-bottom: 2.5rem;
  padding: 0;
}

.promo-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  font-size: 1.05rem;
}

.promo-features i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.promo-btns {
  display: flex;
  gap: 1.5rem;
}

/* CSS Mockup Frame */
.promo-mockup {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #111;
  border: 12px solid #222;
  border-radius: 40px;
  position: relative;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5),
              0 30px 60px -30px rgba(0,0,0,0.6),
              inset 0 -2px 6px 0 rgba(255,255,255,0.1);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.phone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0F172A;
  border-radius: 30px;
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.mock-avatar {
  width: 24px;
  height: 24px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 15px;
}

.mock-label { font-size: 0.6rem; color: #94A3B8; margin-bottom: 5px; }
.mock-val { font-size: 1.5rem; font-weight: 800; color: white; }
.mock-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 10px; }
.mock-bar .fill { height: 100%; background: var(--secondary-color); border-radius: 2px; }

.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-card.mini { padding: 12px; text-align: center; background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:8px; }
.mock-card.mini i { font-size: 1rem; color: var(--accent-color); margin-bottom: 5px; display: block; }
.mock-card.mini span { font-size: 0.6rem; color: white; display: block; }

.mock-chart {
  margin-top: auto;
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 5px;
}

.mock-chart .bar {
  flex: 1;
  background: var(--secondary-color);
  border-radius: 3px 3px 0 0;
  opacity: 0.6;
}

@media (max-width: 992px) {
  .promo-wrapper { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .promo-text h2 { text-align: center !important; margin: 0 auto; }
  .promo-text .title-underline-small { margin: 10px auto 20px; }
  .promo-features { display: inline-block; text-align: left; }
  .promo-btns { justify-content: center; }
  .promo-mockup { transform: scale(0.85); order: -1; }
}

/* Global List Visibility & Aesthetics Fix */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: inherit;
}

li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

/* Specific fix for hero/promo lists with icons */
.promo-features {
    list-style: none;
    padding-left: 0 !important;
}

.promo-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.promo-features li i {
    margin-top: 4px;
    font-size: 1.1rem;
    min-width: 25px;
}
