@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --accent-red: #ed2c2c;
  --text-dark: #1a1a1a;
  --text-medium: #666666;
  --text-light: #999999;
  --bg-cream: #f5f5f5;
  --bg-white: #ffffff;
  --border-light: #dadada;
}

html {
  overflow-x: hidden;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* --------------- PRODUCT SECTION --------------------- */
.product-section {
  margin: 180px 120px;

  display: flex;
  flex-direction: row;

  justify-content: space-between;
  align-items: center;
  gap: 100px;
}

.spline-container {
  width: 100%;
  height: 500px;

  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.45s ease;

  display: flex;
}

.spline-container spline-viewer {
  width: 100%;
  height: 100%;
}

.spline-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  border-color: var(--text-dark);
}

.product-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;

  height: 100%;
}

.product-details .product-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title h1 {
  color: var(--text-dark);
  font-weight: bold;
  font-size: 64px;

  line-height: 75px;
}

.product-title p {
  color: var(--text-light);
  font-weight: bold;
}

.product-details .description {
  color: var(--text-medium);
  font-weight: 400;
  font-size: 16px;

  text-align: left;
}

.product-details .buy-button {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  padding-right: 20px;
}

.buy-button a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  gap: 5px;

  background-color: var(--accent-red);

  color: var(--bg-white);
  font-size: 16px;
  font-weight: 600;

  border: 2px solid transparent;
  border-radius: 10px;
  text-decoration: none;

  transition: 0.35s ease;
  cursor: pointer;

  width: 150px;
  height: 50px;
}

.buy-button a:hover {
  background-color: var(--text-dark);
  gap: 12px;
}

/* Added button styles for buy button */
.buy-button button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  gap: 5px;

  background-color: var(--accent-red);

  color: var(--bg-white);
  font-size: 16px;
  font-weight: 600;

  border: none;
  border-radius: 10px;

  transition: 0.35s ease;
  cursor: pointer;

  width: 150px;
  height: 50px;
}

.buy-button button:hover {
  background-color: var(--text-dark);
  gap: 12px;
}

.buy-button button .arrow-icon {
  width: 18px;
  height: 18px;
}

.buy-button h1 {
  font-size: 52px;
  font-weight: bold;

  color: var(--text-dark);
}

/* ==================== MODAL ==================== */
/* Added modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-medium);
  cursor: pointer;
  transition: 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.close-btn:hover {
  background-color: var(--bg-cream);
  color: var(--accent-red);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  transition: 0.3s ease;
  background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-red);
}

.form-group select {
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  background-color: var(--accent-red);
  color: var(--bg-white);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: var(--text-dark);
  gap: 12px;
}

.submit-btn .arrow-icon {
  width: 18px;
  height: 18px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
  /* Navigation layout moved to css/navbar.css */

  .product-section {
    margin: 100px 60px;
    gap: 60px;
  }

  .product-title h1 {
    font-size: 48px;
    line-height: 56px;
  }

  .buy-button h1 {
    font-size: 42px;
  }
}

/* Tablets pequeñas */
@media (max-width: 768px) {
  .logo-img {
    width: 32px;
    height: 32px;
  }

  .logo h1 {
    font-size: 18px;
  }

  /* Navigation layout and buttons handled by css/navbar.css */

  .product-section {
    margin: 80px 40px;
    flex-direction: column;
    gap: 40px;
  }

  .spline-container {
    width: 100%;
    height: 400px;
  }

  .product-details {
    gap: 30px;
  }

  .product-title h1 {
    font-size: 40px;
    line-height: 48px;
  }

  .product-details .description {
    font-size: 15px;
  }

  .buy-button h1 {
    font-size: 36px;
  }

  .buy-button a {
    width: 140px;
    height: 48px;
    font-size: 15px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .logo-img {
    width: 28px;
    height: 28px;
  }

  .logo h1 {
    font-size: 16px;
  }

  /* Navigation adjustments moved to css/navbar.css */

  .product-section {
    margin: 40px 20px;
    gap: 30px;
  }

  .spline-container {
    height: 300px;
    border-radius: 16px;
  }

  .product-details {
    gap: 24px;
  }

  .product-title h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .product-title p {
    font-size: 14px;
  }

  .product-details .description {
    font-size: 14px;
    line-height: 1.6;
  }

  .buy-button {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-right: 0;
  }

  .buy-button h1 {
    font-size: 32px;
  }

  .buy-button a {
    width: 100%;
    height: 50px;
    font-size: 16px;
  }

  .buy-button button {
    width: 100%;
    height: 50px;
    font-size: 16px;
  }

  .arrow-icon {
    width: 18px;
    height: 18px;
  }

  .modal-content {
    padding: 30px 20px;
    width: 95%;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .close-btn {
    font-size: 28px;
    width: 36px;
    height: 36px;
  }

  .form-group input,
  .form-group select {
    padding: 10px 14px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 15px;
  }
}