
/* ==========================================
   ASTRO BARBERIA - CSS PRINCIPAL
   HOME, TIENDA, CITAS, SIGN IN Y FOOTER
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0d0d0d;
  color: white;
  line-height: 1.6;
}

/* HEADER */
header {
  background: rgba(0, 0, 0, 0.95);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #1f1f1f;
}

.logo {
  height: 65px;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  position: relative;
}

nav a:hover {
  color: #60a5fa;
}

nav a::after {
  content: "";
  width: 0;
  height: 2px;
  background: #60a5fa;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* HERO PREMIUM HOME */
.hero {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  background: radial-gradient(
    125% 125% at 50% 10%,
    #000000 40%,
    #4f46e5 100%
  );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to right, rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 6rem 4rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle 900px at 100% 200px,
    rgba(180, 120, 255, 0.35),
    transparent
  );
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: white;
  text-shadow:
    0 0 20px rgba(79, 70, 229, 0.45),
    0 0 50px rgba(99, 102, 241, 0.25);
}

.hero h1 span {
  color: #60a5fa;
}

.hero p {
  font-size: 1.25rem;
  max-width: 850px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-buttons .btn {
  padding: 15px 28px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, #60a5fa, #4f46e5);
  box-shadow:
    0 10px 30px rgba(79,70,229,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.35s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 40px rgba(79,70,229,0.45);
}

/* BOTONES GENERALES */
.btn {
  background: linear-gradient(135deg, #0077ff, #00c3ff);
  color: white;
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,170,255,0.35);
}

.secondary {
  background: linear-gradient(135deg, #444, #222);
}

/* PROMO NOTIFICATION HOME */
.promo-notification {
  position: fixed;
  top: 100px;
  right: 30px;
  width: 320px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(0, 170, 255, 0.25);
  border-radius: 22px;
  padding: 22px;
  z-index: 9999;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.6s ease;
}

.show-promo {
  transform: translateX(0);
  opacity: 1;
}

.promo-content h3 {
  font-size: 2rem;
  margin: 10px 0;
  color: white;
}

.promo-content p {
  color: #ccc;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.promo-badge {
  background: linear-gradient(135deg, #ff0050, #0077ff);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  color: white;
}

.promo-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  background: linear-gradient(135deg, #0077ff, #00c3ff);
  transition: 0.3s;
}

.promo-btn:hover {
  transform: scale(1.05);
}

.close-promo {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
}

.close-promo:hover {
  color: white;
}

/* SECTION */
.section {
  padding: 70px 40px;
  max-width: 1300px;
  margin: auto;
}

.section h1,
.section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #60a5fa;
}

.section > p {
  text-align: center;
  color: #ccc;
  margin-bottom: 30px;
}

/* GRID */
.grid,
.shop-grid,
.gallery-grid {
  display: grid;
  gap: 25px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.shop-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* CARDS */
.card,
.product,
.plan,
.form-card,
.cart-box {
  background: #151515;
  border: 1px solid #222;
  border-radius: 18px;
  padding: 25px;
  transition: 0.3s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.card:hover,
.product:hover,
.plan:hover {
  transform: translateY(-8px);
  border-color: #60a5fa;
}

.card h3,
.product h3,
.plan h3 {
  margin-bottom: 10px;
}

.card span {
  color: #60a5fa;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 20px;
}

.about p {
  color: #ddd;
  margin-bottom: 15px;
}

/* FORMS */
.form-container {
  max-width: 1200px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 20px;
}

.form-card label {
  display: block;
  margin-top: 15px;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea,
.cart-box input {
  width: 100%;
  padding: 14px;
  background: #0f0f0f;
  border: 1px solid #333;
  border-radius: 10px;
  color: white;
  outline: none;
  margin-bottom: 12px;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.cart-box input:focus {
  border-color: #60a5fa;
}

/* TIENDA */
.shop-subtitle {
  text-align: center;
  color: #aaa;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.product-info {
  padding-top: 20px;
  text-align: center;
}

.product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.product-info p {
  font-size: 1.2rem;
  color: #60a5fa;
  margin-bottom: 15px;
  font-weight: bold;
}

.product img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

/* 3D HOVER TIENDA */
.hover-card {
  perspective: 1500px;
}

.card-3d {
  position: relative;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.card-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.35),
    transparent 80%
  );
  transform: translateX(-120%);
  transition: 0.6s ease;
  z-index: 2;
}

.card-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
  border-radius: 18px;
}

.hover-card:hover .card-3d {
  transform: rotateX(12deg) rotateY(-15deg) translateY(-15px) scale(1.04);
  box-shadow: 0 30px 50px rgba(96,165,250,0.35);
}

.hover-card:hover .card-3d::before {
  transform: translateX(120%);
}

.hover-card:hover .card-3d img {
  transform: scale(1.12);
}

/* CARRITO */
.cart-box {
  margin-top: 40px;
}

#cartList {
  list-style: none;
  margin: 20px 0;
}

#cartList li {
  padding: 10px;
  border-bottom: 1px solid #333;
}

.cart-total {
  margin: 20px 0;
  font-size: 1.2rem;
  text-align: center;
}

.cart-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.cart-buttons .btn {
  flex: 1;
}

/* GALERÍA */
.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(96,165,250,0.35);
}

.filters {
  text-align: center;
  margin-bottom: 30px;
}

.filters .btn {
  margin: 5px;
}

/* SIGN IN */
.signin-page {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.signin-form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.signin-card {
  width: 100%;
  max-width: 430px;
  background: #151515;
  border: 1px solid #222;
  border-radius: 28px;
  padding: 35px;
}

.signin-card h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.signin-card p {
  color: #aaa;
  margin-bottom: 25px;
}

.signin-card label {
  display: block;
  margin-top: 15px;
  margin-bottom: 8px;
  color: #ccc;
}

.signin-card input {
  width: 100%;
  padding: 15px;
  border-radius: 16px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: white;
  outline: none;
}

.signin-card input:focus {
  border-color: #8b5cf6;
}

.password-box {
  position: relative;
}

.password-box button {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
}

.signin-options {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  font-size: 14px;
}

.signin-options a,
.create-account a {
  color: #8b5cf6;
  text-decoration: none;
}

.remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.remember input {
  width: auto;
  margin: 0;
}

.signin-btn {
  width: 100%;
}

.divider {
  text-align: center;
  margin: 25px 0;
  color: #777;
  position: relative;
}

.divider::before {
  content: "";
  height: 1px;
  background: #333;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
}

.divider span {
  background: #151515;
  padding: 0 15px;
  position: relative;
}

.google-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #333;
  background: transparent;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.google-btn:hover {
  background: #1f1f1f;
}

.google-icon {
  background: white;
  color: black;
  border-radius: 50%;
  padding: 4px 8px;
  margin-right: 8px;
}

.create-account {
  text-align: center;
  margin-top: 20px;
}

.signin-hero {
  position: relative;
  padding: 20px;
}

.signin-image {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background:
    linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
    url("../imagen/Wisin\ &\ Yandel.jpg") center/cover no-repeat;
}

.testimonial-box {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  display: flex;
  gap: 15px;
  align-items: center;
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 18px;
}

.testimonial-box img {
  width: 55px;
  height: 55px;
  border-radius: 18px;
  object-fit: cover;
}

/* PASSWORD VALIDATOR */
.password-validator {
  margin-top: 18px;
  background: #eeeef4;
  color: #444;
  padding: 18px;
  border-radius: 18px;
}

.strength-bar {
  width: 100%;
  height: 8px;
  background: #d2d2dc;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
}

#strengthFill {
  width: 0;
  height: 100%;
  background: #ef4444;
  border-radius: 20px;
  transition: 0.3s;
}

.strength-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #777;
}

#strengthLabel {
  color: #ef4444;
}

.password-rules {
  list-style: none;
}

.password-rules li {
  margin: 10px 0;
  font-weight: 600;
  color: #777;
}

.password-rules li::before {
  content: "○";
  margin-right: 10px;
  color: #aaa;
}

.password-rules li.valid {
  color: #38b26c;
}

.password-rules li.valid::before {
  content: "✓";
  background: #38b26c;
  color: white;
  border-radius: 50%;
  padding: 1px 5px;
}

#continueBtn:disabled {
  background: #e5e5e5;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* FOOTER GENERAL DE RESPALDO */
footer {
  background: #000;
  padding: 25px;
  text-align: center;
  margin-top: 60px;
  color: #aaa;
  border-top: 1px solid #222;
}

/* RESPONSIVE GENERAL */
@media (max-width: 900px) {
  .about,
  .form-container,
  .signin-page {
    grid-template-columns: 1fr;
  }

  .signin-hero {
    display: none;
  }

  header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  nav {
    justify-content: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .promo-notification {
    width: 90%;
    right: 5%;
    top: 90px;
  }
}

@media (max-width: 768px) {
  .cart-buttons {
    flex-direction: column;
  }

  .card-3d {
    height: 260px;
  }

  .hero {
    padding: 30px 20px;
    min-height: 80vh;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
  }

  nav {
    gap: 12px;
  }

  .section {
    padding: 50px 20px;
  }

  .signin-card {
    padding: 25px;
  }

  .signin-card h1 {
    font-size: 2.3rem;
  }
}

/* ==========================================
   HOME Y FOOTER
   COLORES Y DISEÑO FINAL
========================================== */

:root {
  --astro-violeta: #8b5cf6;
  --astro-violeta-claro: #c4b5fd;
  --astro-fondo: #0d0b12;
  --astro-superficie: #1c1626;
  --astro-borde: #49375f;
  --astro-texto-suave: #c5bacf;
}

/* HOME */
.home-page {
  background: var(--astro-fondo);
  color: #fff;
}

.home-page nav a:hover {
  color: var(--astro-violeta-claro);
}

.home-page nav a::after {
  background: var(--astro-violeta);
}

.home-page .hero {
  min-height: 75vh;
  padding: 90px 24px;
  background:
    radial-gradient(
      circle at 75% 25%,
      rgba(139, 92, 246, .25),
      transparent 55%
    ),
    linear-gradient(135deg, #110e19, #1a1028);
}

.home-page .hero::before {
  opacity: .35;
}

.home-page .hero::after {
  background: radial-gradient(
    circle at 75% 40%,
    rgba(139, 92, 246, .2),
    transparent 60%
  );
}

.home-page .hero h1 {
  color: #fff;
  text-shadow: 0 8px 32px rgba(139, 92, 246, .3);
}

.home-page .hero p {
  max-width: 680px;
  color: var(--astro-texto-suave);
}

.home-page .hero-buttons .btn {
  background: #282034;
  border: 1px solid var(--astro-borde);
  border-radius: 30px;
  box-shadow: none;
  color: #fff;
}

.home-page .hero-buttons .btn:first-child {
  background: linear-gradient(
    135deg,
    #7137d2,
    var(--astro-violeta)
  );
  border-color: transparent;
}

.home-page .hero-buttons .btn:hover {
  background: #7137d2;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, .25);
}

.home-page .section h2 {
  color: #fff;
}

.home-page .section .card {
  background: linear-gradient(145deg, #211a2d, #17131d);
  border: 1px solid #392d49;
  border-radius: 22px;
}

.home-page .section .card:hover {
  border-color: var(--astro-violeta);
  transform: translateY(-5px);
}

.home-page .section .card p {
  color: var(--astro-texto-suave);
}

.home-page .section .card span {
  color: var(--astro-violeta-claro);
}

/* FOOTER: COMENTARIOS Y REDES SOCIALES */
footer.astro-footer-simple {
  background: #111015;
  color: #fff;
  padding: 55px 6% 25px;
  border-top: 1px solid #34263f;
  margin-top: 55px;
  text-align: left;
}

.astro-footer-simple *,
.astro-footer-simple *::before,
.astro-footer-simple *::after {
  box-sizing: border-box;
}

.astro-footer-contenido {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 45px;
}

.astro-footer-simple h2 {
  color: #fff;
  font-size: 23px;
  margin: 0 0 12px;
}

.astro-footer-simple p {
  color: var(--astro-texto-suave);
  font-size: 14px;
  line-height: 1.7;
}

.astro-footer-comentarios form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.astro-footer-comentarios input,
.astro-footer-comentarios textarea {
  width: 100%;
  padding: 14px;
  background: #272033;
  color: #fff;
  border: 1px solid var(--astro-borde);
  border-radius: 12px;
  font: inherit;
  outline: none;
}

.astro-footer-comentarios textarea {
  resize: vertical;
  min-height: 110px;
}

.astro-footer-comentarios input:focus,
.astro-footer-comentarios textarea:focus {
  border-color: var(--astro-violeta-claro);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
}

.astro-footer-comentarios button {
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--astro-violeta);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s;
}

.astro-footer-comentarios button:hover {
  background: #7137d2;
}

.astro-footer-comentarios button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

#astroFooterEstado {
  min-height: 20px;
  margin: 0;
}

.astro-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.astro-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 25px;
  background: #272033;
  border: 1px solid var(--astro-borde);
  color: #e0d0ff;
  text-decoration: none;
  transition: background .25s, transform .25s;
}

.astro-footer-social a:hover {
  background: var(--astro-violeta);
  color: #fff;
  transform: translateY(-3px);
}

.astro-footer-copy {
  max-width: 1150px;
  margin: 35px auto 0;
  padding-top: 20px;
  border-top: 1px solid #352942;
  color: #aaa0b9;
  text-align: center;
  font-size: 13px;
}

.astro-footer-simple a:focus-visible,
.astro-footer-simple button:focus-visible,
.astro-footer-simple input:focus-visible,
.astro-footer-simple textarea:focus-visible {
  outline: 2px solid var(--astro-violeta-claro);
  outline-offset: 3px;
}

/* FOOTER DEL HOME ESTILO TARJETA */
.home-page .astro-footer-contenido {
  background: var(--astro-superficie);
  border: 1px solid var(--astro-borde);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
}

.home-page footer.astro-footer-simple {
  background: transparent;
  border-top: 0;
  margin-top: 15px;
  padding: 35px 5% 25px;
}

/* RESPONSIVE DEL FOOTER */
@media (max-width: 900px) {
  .astro-footer-contenido {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 600px) {
  footer.astro-footer-simple {
    padding: 40px 20px 25px;
  }

  .home-page .hero {
    min-height: 65vh;
    padding: 65px 20px;
  }

  .home-page .hero-buttons .btn {
    width: 100%;
  }

  .home-page .astro-footer-contenido {
    padding: 25px 20px;
  }

  .astro-footer-social a {
    padding: 12px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-buttons .btn,
  .home-page .section .card,
  .astro-footer-social a {
    transition: none;
  }
}

/* FOOTER - COMENTARIOS Y REDES SOCIALES */

.astro-footer-contenido,
.home-page .astro-footer-contenido {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 45px;
  max-width: 1150px;
  margin: 0 auto;
}

.astro-footer-redes h2 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 12px;
}

.astro-footer-redes p {
  color: #c5bacf;
  font-size: 14px;
  line-height: 1.7;
}

.astro-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.astro-footer-social .red-social {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 18px;
  border-radius: 15px;
  background: #292135;
  border: 1px solid #49375f;
  color: #e6dcff;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
}

.astro-footer-social .red-social small {
  color: #b39ed0;
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .astro-footer-contenido,
  .home-page .astro-footer-contenido {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }
}
.astro-footer-info {
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid #49375f;
}