/* TinkuBot - Estilos Personalizados */

:root {
  --primary-color: #4A90E2;
  --secondary-color: #357ABD;
  --accent-color: #2E5B8A;
  --success-color: #25D366;
  --text-dark: #2D3748;
  --text-light: #718096;
  --bg-light: #F7FAFC;
  --white: #FFFFFF;
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Tipografía Apple Universal */
* {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Fuentes y tipografía - Apple Style */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Títulos estilo Apple */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero h1 {
  font-weight: 700;
  letter-spacing: -0.028em;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Utilidades */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-gradient { background: var(--gradient) !important; }

/* Header y Navegación */
.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

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

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

/* Hero Section */
.hero {
  background: var(--gradient);
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="white" opacity="0.08"/><circle cx="50" cy="50" r="0.8" fill="white" opacity="0.12"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero .lead {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Botones */
.btn-primary {
  background: var(--white);
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background: var(--bg-light);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-whatsapp {
  background: #25D366;
  border: none;
  color: #FFF;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #128C7E;
  color: #FFF;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
  font-size: 18px;
}

/* Cards y secciones */
.feature-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: none;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: white;
}

/* Secciones */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-light);
}

/* Footer */
.footer {
  background: var(--accent-color);
  color: white;
  padding: 60px 0 30px;
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

/* Contacto destacado */
.contact-highlight {
  background: var(--gradient);
  color: white;
  padding: 40px 0;
  text-align: center;
}

.contact-highlight h3 {
  margin-bottom: 1rem;
}

.contact-number {
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.contact-number:hover {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

/* Responsive - Móvil mejorado */

/* Teléfonos pequeños */
@media (max-width: 576px) {
  .hero {
    min-height: 60vh;
    padding: 20px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero .lead {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }
  
  .contact-number {
    font-size: 1.1rem;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
  }
  
  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .navbar-brand {
    font-size: 1.4rem;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .alert.d-inline-block {
    display: block !important;
    font-size: 0.9rem;
  }
  
  .table-responsive {
    font-size: 0.85rem;
  }
  
  .timeline-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .price-display .h1 {
    font-size: 2rem;
  }
  
  .price-display .h2 {
    font-size: 1.5rem;
  }
  
  /* App Store badges responsive */
  .app-download-buttons {
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
  }
  
  .app-badge img {
    width: 120px;
    height: auto;
  }
  
  .badge-overlay {
    font-size: 0.65rem;
    padding: 3px 6px;
  }
  
  .client-contact {
    margin-top: 1.5rem;
  }
  
  .client-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }
  
  .client-contact p {
    font-size: 0.9rem;
  }
  
  .contact-highlight {
    padding: 30px 0;
  }
}

/* Teléfonos grandes y tablets pequeñas */
@media (max-width: 768px) {
  .hero {
    min-height: 65vh;
    padding: 30px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
  }
  
  .hero .lead {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
  }
  
  .contact-number {
    font-size: 1.3rem;
    padding: 12px 25px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .feature-card {
    padding: 1.8rem;
  }
  
  .contact-highlight {
    padding: 35px 0;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  /* App Store badges tablet */
  .app-download-buttons {
    gap: 18px;
    margin: 25px 0;
  }
  
  .app-badge img {
    width: 130px;
    height: auto;
  }
  
  .client-contact {
    margin-top: 1.8rem;
  }
}

/* Tablets */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero .lead {
    font-size: 1.15rem;
  }
  
  .contact-number {
    font-size: 1.6rem;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Estados de elementos */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* App Store Badges */
.app-download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}

.app-badge {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.app-badge.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.app-badge:hover.disabled {
  opacity: 0.8;
}

.badge-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
}

.client-contact {
  margin-top: 2rem;
}

.client-contact h4 {
  margin-bottom: 1rem;
}

.contact-number img {
  margin-right: 8px;
  vertical-align: middle;
}

/* Iconos personalizados */
.icon-whatsapp::before {
  content: "📱";
}

.icon-shield::before {
  content: "🛡️";
}

.icon-users::before {
  content: "👥";
}

.icon-star::before {
  content: "⭐";
}

.icon-phone::before {
  content: "📞";
}

.icon-email::before {
  content: "📧";
}

.icon-location::before {
  content: "📍";
}

/* Botón Flotante WhatsApp */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-wa:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    text-decoration: none;
}

.float-wa i {
    margin-top: 0;
    line-height: 1;
}

/* Responsive del botón flotante */
@media (max-width: 768px) {
    .float-wa {
        width: 50px;
        height: 50px;
        bottom: 30px;
        right: 30px;
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .float-wa {
        width: 45px;
        height: 45px;
        bottom: 25px;
        right: 25px;
        font-size: 20px;
    }
}