/* ========== VARIABLES ========== */
:root{
  --red: #ff8080;
  --yellow: #ffe380;
  --dark: #111;
  --muted: #666;
  --bg: #f6f7f9;
  --card: #ffffff;
  --glass: rgba(255,255,255,0.7);
  --shadow: 0 8px 20px rgba(16,24,40,0.04);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ========== RESET ========== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background:var(--bg);
  color:var(--dark);
  line-height:1.6;
  -webkit-text-size-adjust:100%;
}

/* ========== TOPBAR ========== */
.topbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(255,255,255,0.96);
    backdrop-filter: blur(6px);
    border-bottom:1px solid #eee;
    transition: var(--transition);
}

.topbar.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav{
  max-width:1100px;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand-name{
  font-weight:800;
  color:var(--dark);
  letter-spacing:0.4px;
  font-size: 1.2rem;
}
.menu{
  display:flex;
  gap:12px;
  align-items:center;
}
.menu a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:8px;
  color:var(--muted);
  font-weight:600;
  transition:var(--transition);
  text-decoration:none;
  white-space:nowrap;
  position: relative;
}
.menu a:hover{background:#fff;color:var(--dark);border:1px solid #eee;transform:translateY(-2px)}
.menu a.active {color: var(--red);}

/* HAMBURGER */
.hamburger{
  display:none;
  width:44px;height:36px;border-radius:8px;align-items:center;justify-content:center;border:none;background:transparent;
  cursor: pointer;
  transition: var(--transition);
}
.hamburger:hover {
  background: rgba(0,0,0,0.05);
}
.hamburger svg{width:22px;height:22px;opacity:0.9}

/* ========== HERO ========== */
header.hero{
  background: linear-gradient(135deg, var(--red), var(--yellow));
  background-size: 300% 300%;
  animation: shiftBG 12s linear infinite;
  color:#fff;
  text-align:center;
  padding:52px 20px 72px;
  margin-top: 60px;
}
@keyframes shiftBG{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}
.logo-lg{width:260px;max-width:70vw;margin:0 auto 18px;display:block; transition: var(--transition);}
.hero-title{font-size:28px;margin:6px 0 0;font-weight:800}
.hero-sub{margin:6px 0 0;font-size:15px;opacity:0.95}

/* Store buttons row */
.store-row{margin-top:18px;display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.store-btn{
  display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border-radius:12px;background:rgba(0,0,0,0.14);color:#fff;font-weight:800;
  min-width:150px;justify-content:center;text-decoration:none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.store-btn:hover {
  background: rgba(0,0,0,0.25);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.store-btn:active {
  transform: translateY(-1px);
}
.store-btn svg{width:18px;height:18px;opacity:0.98}

/* hero CTA */
.hero-cta{display:inline-block;margin-top:18px;padding:12px 20px;border-radius:10px;background:#fff;color:var(--red);font-weight:800;text-decoration:none; transition: var(--transition);}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ========== MAIN ========== */
main{max-width:1100px;margin:22px auto;padding:0 18px 80px}

/* section title */
.section-title{text-align:center;margin-top:34px}
.section-title h2{color:#E30022;margin:8px 0 4px;font-size:20px; position: relative; display: inline-block;}
.section-title h2:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.section-title p{color:var(--muted);margin:0;font-size:13px}

/* grid */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
  margin-top:18px;
}

/* card */
.card{
  background:var(--card);
  padding:18px;
  border-radius:var(--radius);
  border:1px solid #eee;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(16,24,40,0.1);
}
.card h3{margin:0 0 8px;font-size:16px;color:var(--dark)}
.card p{margin:0;color:var(--muted);font-size:14px}
.card .sep{height:1px;background:#f5f5f5;margin:12px 0;border-radius:2px}

/* icon + title row */
.icon-title{display:flex;align-items:center;gap:12px}
.icon-wrap{width:44px;height:44px;border-radius:10px;background:linear-gradient(180deg,#fff,#f7f7f7);display:flex;align-items:center;justify-content:center;border:1px solid #f0f0f0; transition: var(--transition);}
.card:hover .icon-wrap {
  transform: scale(1.1);
  background: linear-gradient(180deg, #fff, #f0f0f0);
}
.icon-wrap svg{width:22px;height:22px;color:var(--red);opacity:0.95}

/* person cards */
.people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-top:12px}
.person{display:flex;gap:12px;align-items:center;padding:10px;border-radius:10px;background:var(--card);border:1px solid #f0f0f0; transition: var(--transition);}
.person:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.avatar{width:52px;height:52px;border-radius:10px;background:linear-gradient(180deg,#eee,#ddd);display:flex;align-items:center;justify-content:center;font-weight:700;color:#444}

/* table */
.table-wrap{overflow-x:auto;border-radius:10px;margin-top:12px}
table{width:100%;min-width:420px;border-collapse:collapse;background:var(--card); border-radius: 10px; overflow: hidden;}
th,td{padding:12px 14px;border-bottom:1px solid #eee;text-align:left}
th{background:linear-gradient(90deg,var(--yellow),#f6d14a);font-weight:800}
tr:last-child td{border-bottom:none}
tr {
  transition: var(--transition);
}
tr:hover {
  background: rgba(0,0,0,0.02);
}

/* contact list */
.contact-list a{display:block;padding:10px 0;color:var(--dark);text-decoration:none;border-bottom:1px dashed #f5f5f5; transition: var(--transition);}
.contact-list a:hover {
  color: var(--red);
  padding-left: 5px;
}
.contact-list a:last-child{border-bottom:none}

/* QR small */
.qr{width:110px;height:110px;border-radius:8px;border:1px solid #eee;display:inline-block;object-fit:cover; transition: var(--transition);}
.qr:hover {
  transform: scale(1.05);
}

/* fixed whatsapp CTA */
.fixed-cta{position:fixed;right:16px;bottom:16px;z-index:90}
.btn-cta{display:inline-flex;align-items:center;gap:10px;padding:12px 16px;border-radius:999px;background:linear-gradient(90deg,#E30022,#b30000);color:#fff;font-weight:800;box-shadow:0 10px 28px rgba(212,0,0,0.18);text-decoration:none; transition: var(--transition);}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(212,0,0,0.25);
}
.btn-cta:active {
  transform: translateY(-1px);
}
.btn-cta svg{width:18px;height:18px;flex:0 0 18px}

/* footer */
footer{max-width:1100px;margin:36px auto;padding:18px;text-align:center;color:var(--muted);font-size:13px; border-top: 1px solid #eee;}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 16px;
  background: var(--red);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 89;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #b30000;
  transform: translateY(-3px);
}

/* ========== RESPONSIVE ========== */
@media (max-width:860px){
  .nav{padding:10px}
  .menu{display:none}
  .hamburger{display:flex}
  .brand-name {
    font-size: 1rem;
  }
}
@media (max-width:520px){
  .logo-lg{width:190px}
  .hero-title{font-size:20px}
  .store-btn{min-width:140px;padding:8px 12px}
  .hero {
    padding: 40px 20px 60px;
  }
  .section-title h2 {
    font-size: 18px;
  }
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  z-index: 999;
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.mobile-link:hover, .mobile-link.active {
  background: rgba(212,0,0,0.05);
  color: var(--red);
}

/* Form styles */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--dark);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(212,0,0,0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: #b30000;
  transform: translateY(-2px);
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Notification */
.notification {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(150%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #4CAF50;
}

.notification.error {
  border-left: 4px solid #f44336;
}

.notification-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.notification.success .notification-icon {
  background: #4CAF50;
}

.notification.error .notification-icon {
  background: #f44336;
}

.store-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Mejoras para la sección de contacto */
.contact-list a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px dashed #f5f5f5;
  transition: var(--transition);
}

.contact-list a:hover {
  color: var(--red);
  padding-left: 5px;
}

.contact-list a:last-child {
  border-bottom: none;
}

/* Mejora para los placeholders */
.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
  opacity: 0.7;
}

.store-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid #eee;
  border-radius: 8px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.store-link:hover {
  background: var(--red);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 0, 0, 0.2);
}

.store-link:hover svg {
  stroke: white;
}
