/* ═══════════════════════════════════════════════════════════════════════════ */
/* BOLITA POR FAVOR — ESTILOS MODERNOS Y ATRACTIVOS */
/* ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --navy: #0c1a4b;
  --navy-light: #1a2d5f;
  --navy-lighter: #2a3f7f;
  --navy-dark: #050c24;
  --cream: #fff7ed;
  --cream-dark: rgba(255, 247, 237, 0.6);
  --cream-light: rgba(255, 247, 237, 0.9);
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #faa726;
  --success: #10b981;
  --error: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: var(--cream);
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ANIMACIONES */
/* ═══════════════════════════════════════════════════════════════════════════ */

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

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

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HEADER */
/* ═══════════════════════════════════════════════════════════════════════════ */

header {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-lighter) 100%);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

nav .text-2xl {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 4px;
}

nav a:hover {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HERO SECTION */
/* ═══════════════════════════════════════════════════════════════════════════ */

section:first-of-type {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lighter) 50%, var(--navy) 100%);
  padding: 60px 24px !important;
  text-align: center;
  animation: slideDown 0.8s ease;
}

section:first-of-type .text-6xl {
  font-size: 48px;
  animation: pulse 2s ease infinite;
}

section:first-of-type h2 {
  font-size: 42px;
  font-weight: 900;
  margin: 20px 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

section:first-of-type p {
  font-size: 18px;
  color: var(--cream-dark);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* SEARCH SECTION */
/* ═══════════════════════════════════════════════════════════════════════════ */

#searchInput {
  background-color: var(--navy-light) !important;
  color: var(--cream) !important;
  border-color: var(--orange) !important;
  font-size: 16px;
  padding: 16px !important;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

#searchInput:focus {
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(249, 115, 22, 0.2);
  transform: scale(1.02);
}

#searchInput::placeholder {
  color: var(--cream-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* SECTION TITLES */
/* ═══════════════════════════════════════════════════════════════════════════ */

h3 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--cream);
  text-transform: uppercase;
}

h3 > div {
  width: 60px !important;
  height: 4px !important;
  background-color: var(--orange) !important;
  margin-top: 12px !important;
  border-radius: 2px;
  animation: slideDown 0.8s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FOOTER */
/* ═══════════════════════════════════════════════════════════════════════════ */

footer {
  background: var(--navy-dark);
  border-top: 3px solid var(--orange);
  margin-top: 60px;
  animation: slideUp 0.8s ease;
}

footer p {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* BOTONES DE PRODUCTO */
/* ═══════════════════════════════════════════════════════════════════════════ */

.btn-personalizar,
.btn-agregar-directo {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-personalizar {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-personalizar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
}

.btn-agregar-directo {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-agregar-directo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* MODAL: VER IMAGEN GRANDE */
/* ═══════════════════════════════════════════════════════════════════════════ */

.modal-imagen-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-imagen-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-imagen-content .modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal-imagen-content .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  nav {
    padding: 12px 16px;
  }

  nav .text-2xl {
    font-size: 22px;
  }

  nav a {
    font-size: 12px;
    padding: 6px 12px;
  }

  h3 {
    font-size: 28px;
  }

  section:first-of-type h2 {
    font-size: 32px;
  }

  section:first-of-type p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  h3 {
    font-size: 24px;
  }

  section:first-of-type h2 {
    font-size: 28px;
  }

  section:first-of-type .text-6xl {
    font-size: 40px;
  }
}
