﻿/* Estilos CSS Base */
:root {
  --primary-blue: #044bab;
  --primary-dark: #022a61;
  --accent-yellow: #f3d136;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --bg-light: #f8fafc;
  --success: #10b981;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAVBAR Y LOGO - Usando estilos de navbar.css */
/* Los estilos fueron removidos para usar los de css/navbar.css */

/* HEADER MEJORADO */
.hero {
  min-height: 60vh;
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 150px 5% 0; /* Espacio para navbar fijo */
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 86, 179, 0.8) 0%,
    transparent 70%
  );
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(243, 209, 54, 0.2) 0%,
    transparent 70%
  );
  bottom: 10%;
  right: -5%;
  animation: float 10s ease-in-out infinite reverse;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(5deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
  }
}

.hero-content {
  z-index: 10;
  max-width: 900px;
  position: relative;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 800;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.2s;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #ffffff 50%,
    var(--accent-yellow) 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s forwards 0.2s, shimmer 3s linear infinite;
  letter-spacing: -1px;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.4s;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* CART SECTION */
.cart-section {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  animation: fadeUp 0.8s ease backwards 0.4s;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CART ITEMS CON EFECTOS 3D */
.cart-item {
  background: var(--white);
  padding: 25px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.cart-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-item:hover::before {
  transform: scaleX(1);
}

.cart-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(4, 75, 171, 0.2);
}

.item-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(4, 75, 171, 0.1),
    rgba(4, 75, 171, 0.05)
  );
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  color: var(--primary-blue);
  transition: all 0.4s ease;
}

.cart-item:hover .item-icon {
  background: var(--primary-blue);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.item-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  transition: color 0.3s;
}

.cart-item:hover .item-info h3 {
  color: var(--primary-blue);
}

.item-info p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.item-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--accent-yellow)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-remove {
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.1rem;
  background: none;
  border: none;
  padding: 10px;
}

.btn-remove:hover {
  color: var(--danger);
  transform: scale(1.3) rotate(15deg);
}

/* SUMMARY CON GLASSMORPHISM */
.cart-summary {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 35px;
  border-radius: 30px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 120px;
  height: fit-content;
  transition: all 0.4s ease;
}

.cart-summary:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 15px;
  position: relative;
}

.summary-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-yellow);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.summary-row:hover {
  color: var(--text-dark);
  transform: translateX(5px);
}

.summary-row.total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed #e2e8f0;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.5rem;
}

.summary-row.discount {
  color: var(--success);
  display: none;
  font-weight: 600;
}

/* COUPON INPUT CON GLOW */
.coupon-box {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.coupon-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
}

.coupon-input:focus {
  border-color: var(--primary-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(4, 75, 171, 0.1), 0 0 20px rgba(4, 75, 171, 0.2);
  transform: translateY(-2px);
}

/* BOTONES CON RIPPLE EFFECT */
.btn-apply {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 6px -1px rgba(4, 75, 171, 0.1),
    0 2px 4px -1px rgba(4, 75, 171, 0.06);
  height: 50px; /* Match input height */
}

.btn-apply:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(4, 75, 171, 0.2),
    0 4px 6px -2px rgba(4, 75, 171, 0.1);
}

.btn-apply:active {
  transform: scale(0.95);
  box-shadow: none;
}

.btn-loading {
  opacity: 0.8;
  pointer-events: none;
  cursor: wait;
}

.fa-spinner {
  animation: spin 1s infinite linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.remove-coupon {
  color: var(--danger);
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 8px;
  background: none;
  border: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.remove-coupon:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.btn-apply:hover {
  background: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(4, 75, 171, 0.3);
}

.btn-checkout {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #009ee3 0%, #0073a5 100%);
  color: var(--white);
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  box-shadow: 0 15px 35px rgba(0, 158, 227, 0.4);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-checkout::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-checkout:hover::before {
  width: 400px;
  height: 400px;
}

.btn-checkout:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 158, 227, 0.5),
    0 0 30px rgba(0, 158, 227, 0.3);
}

/* EMPTY CART */
.empty-cart {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px 20px;
  background: var(--white);
  border-radius: 30px;
  display: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.btn-shop {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(4, 75, 171, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-shop::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-shop:hover::before {
  width: 300px;
  height: 300px;
}

.btn-shop:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(4, 75, 171, 0.4);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.modal-msg {
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.modal-btn {
  background: var(--primary-blue);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

.modal-btn:hover {
  background: var(--primary-dark);
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes popIn {
  to {
    transform: scale(1);
  }
}

footer {
  background: linear-gradient(
    to bottom,
    var(--primary-blue),
    var(--primary-dark)
  );
  color: var(--white);
  padding: 4rem 5% 2rem;
  text-align: center;
  margin-top: auto;
}

.copyright {
  opacity: 0.7;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  margin-right: 20px;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(
    to bottom,
    var(--primary-blue),
    var(--primary-dark)
  );
  color: var(--white);
  padding: 4rem 5% 2rem;
  text-align: center;
  margin-top: 80px;
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animación Logo Footer */
.footer-logo {
  height: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.8);
  transition: all 0.4s ease;
  animation: float-logo 6s ease-in-out infinite;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: brightness(0) invert(1) opacity(1)
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

@keyframes float-logo {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

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

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
  .cart-section {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: rgba(4, 75, 171, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: 0.4s;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  nav {
    background: var(--primary-blue);
    align-items: center;
  }

  .logo-img {
    height: 60px;
  }

  .cart-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-items: center;
    padding: 20px;
  }

  .btn-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--danger);
    background: #fee2e2;
    border-radius: 50%;
    padding: 8px;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 120px 5% 60px;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .cart-summary {
    padding: 20px;
  }

  .item-info h3 {
    font-size: 1rem;
  }
}

/* --- ESTILOS WIZARD (FORMULARIO) --- */
.wizard-section {
  padding: 50px 5% 80px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  flex-grow: 1;
  display: none;
  /* Oculto por defecto */
}

.wizard-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.wizard-header {
  background: var(--primary-dark);
  padding: 30px 40px;
  color: var(--white);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 0.9rem;
}

.progress-container {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent-yellow);
  width: 16%;
  transition: width 0.5s ease;
  border-radius: 10px;
}

.wizard-body {
  padding: 40px;
}

.step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.step.active {
  display: block;
}

.step-title {
  font-size: 1.8rem;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.label .required {
  color: var(--danger);
  margin-left: 3px;
  font-weight: bold;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: 0.3s;
  outline: none;
  background: #f8fafc;
  color: var(--text-dark);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(4, 75, 171, 0.1);
}

.input.error,
.select.error {
  border-color: var(--danger);
  background: #fff5f5;
}

.toggle-group {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.toggle-label {
  cursor: pointer;
  padding: 8px 20px;
  border-radius: 50px;
  background: #f1f5f9;
  color: var(--text-light);
  font-weight: 600;
  transition: 0.3s;
  border: 2px solid transparent;
}

.toggle-input {
  display: none;
}

.toggle-input:checked + .toggle-label {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.conditional-field {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: #eff6ff;
  border-radius: 10px;
  animation: slideDown 0.3s;
}

.photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #e2e8f0;
  margin: 0 auto 15px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  background: #f8fafc;
}

.upload-box:hover {
  border-color: var(--primary-blue);
  background: #eff6ff;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  padding: 5px;
}

.skills-container.error {
  border: 1px solid var(--danger);
  border-radius: 12px;
  background: #fff5f5;
}

.skill-option {
  cursor: pointer;
  position: relative;
}

.skill-option input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

.skill-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.skill-option input:checked + .skill-badge {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(4, 75, 171, 0.25);
  transform: translateY(-2px);
}

.wizard-footer {
  padding: 30px 40px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-prev {
  background: transparent;
  color: var(--text-light);
}

.btn-next {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(4, 75, 171, 0.2);
}

.success-view {
  text-align: center;
  display: none;
  padding: 40px 0;
}

.confetti-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 20px;
  animation: popIn 0.5s;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
