/* ===== INTERACTIVE PHONE COMPONENT STYLES ===== */
.phone-component-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  perspective: 1000px;
}

.phone-wrapper {
  position: relative;
  transform-style: preserve-3d;
}

.phone-device {
  position: relative;
  width: 300px;
  height: 600px;
  margin: 0 auto;
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2c3e50, #1a252f);
  border-radius: 40px;
  padding: 15px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    inset 0 2px 10px rgba(255, 255, 255, 0.1),
    inset 0 -2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone-frame:hover {
  transform: rotateY(2deg) rotateX(-2deg) scale(1.02);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

/* ===== PANTALLAS DE LA APP ===== */
.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  transition: all 0.5s ease;
  opacity: 0;
  transform: scale(0.8);
}

.app-screen.active {
  opacity: 1;
  transform: scale(1);
}

/* ===== PANTALLA DE CARGA ===== */
.loading-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.status-bar-phone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.7rem;
  color: white;
  font-weight: 600;
}

.status-icons-phone {
  display: flex;
  gap: 5px;
}

.loading-content-phone {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.app-logo-container {
  width: 65px;
  height: 65px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation: logoFloat 8s ease-in-out infinite;
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-2px) rotate(1deg);
  }
}

.app-logo-phone {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-title-phone {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  letter-spacing: 1px;
}

.app-subtitle-phone {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.start-app-button {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease 0.1s;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: auto;
}

.start-app-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease 0.2s;
}

.start-app-button:active {
  transform: translateY(0px) scale(0.98);
  transition: all 0.1s ease;
}

.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.8s ease;
}

.start-app-button:hover .button-glow {
  left: 100%;
}

/* ===== PANTALLA PRINCIPAL DE LA APP ===== */
.taxi-app-screen {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.app-header-phone {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.user-info-phone {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar-phone {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 0.8rem;
}

.user-details-phone {
  display: flex;
  flex-direction: column;
}

.greeting-phone {
  font-weight: 600;
  color: white;
  font-size: 0.8rem;
}

.location-phone {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}

.notification-badge-phone {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #ff4757;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.map-container-phone {
  flex: 1;
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  position: relative;
  margin: 10px;
  border-radius: 15px;
  overflow: hidden;
}

.map-overlay-phone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
}

.location-pin-phone {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.55rem;
  color: white;
  font-weight: 600;
}

.pickup-pin {
  top: 20%;
  left: 30%;
}

.destination-pin {
  bottom: 30%;
  right: 25%;
}

.pin-icon-phone {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.taxi-icon-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  animation: taxiMove 8s ease-in-out infinite;
}

@keyframes taxiMove {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  25% {
    transform: translate(-47%, -52%) rotate(-2deg);
  }

  75% {
    transform: translate(-53%, -48%) rotate(2deg);
  }
}

.route-line-phone {
  position: absolute;
  top: 25%;
  left: 35%;
  width: 40%;
  height: 2px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 1px;
  animation: routePulse 4s ease-in-out infinite;
}

@keyframes routePulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.trip-info-phone {
  background: rgba(255, 255, 255, 0.95);
  margin: 8px;
  border-radius: 15px;
  padding: 12px;
}

.trip-details-phone {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.trip-item-phone {
  text-align: center;
}

.trip-label-phone {
  display: block;
  font-size: 0.65rem;
  color: #666;
  margin-bottom: 3px;
}

.trip-value-phone {
  display: block;
  font-weight: bold;
  color: #2c3e50;
  font-size: 0.75rem;
}

.action-buttons-phone {
  display: flex;
  gap: 8px;
}

.action-btn-phone {
  flex: 1;
  border: none;
  border-radius: 25px;
  padding: 10px;
  font-weight: 600;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  color: white;
}

.secondary-btn {
  background: rgba(108, 92, 231, 0.1);
  color: #6c5ce7;
  border: 1px solid #6c5ce7;
}

.action-btn-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bottom-nav-phone {
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 0;
  margin-top: 155px;
}

.nav-item-phone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-item-phone.active-nav {
  color: #3498db;
}

.nav-icon-phone {
  font-size: 1rem;
}

.nav-label {
  font-size: 0.55rem;
  font-weight: 500;
}

/* ===== ELEMENTOS FÍSICOS DEL TELÉFONO ===== */
.phone-speaker-component {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: #34495e;
  border-radius: 2px;
}

.phone-home-button {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #34495e;
  border: 2px solid #2c3e50;
}

.phone-volume-up,
.phone-volume-down {
  position: absolute;
  right: -3px;
  width: 3px;
  height: 25px;
  background: #2c3e50;
  border-radius: 2px;
}

.phone-volume-up {
  top: 80px;
}

.phone-volume-down {
  top: 120px;
}

.phone-power-button {
  position: absolute;
  left: -3px;
  top: 100px;
  width: 3px;
  height: 30px;
  background: #2c3e50;
  border-radius: 2px;
}

.phone-shadow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  width: 80%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3), transparent);
  border-radius: 50%;
  z-index: -1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .phone-device {
    width: 250px;
    height: 500px;
  }

  .phone-frame {
    transform: none;
  }

  .app-title-phone {
    font-size: 1.2rem;
  }

  .start-app-button {
    padding: 12px 25px;
    font-size: 0.9rem;
  }
}