/* ============================================
   IRONFIT - ESTILOS PARA FISICOCULTURISTAS
   Paleta: Negro, gris oscuro, rojo intenso, dorado
   ============================================ */

/* ===== RESET Y VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --dark-gray: #1a1a1a;
  --medium-gray: #2d2d2d;
  --red: #cc0000;
  --red-dark: #990000;
  --gold: #ffd700;
  --gold-dark: #c9a800;
  --white: #f5f5f5;
  --orange-metallic: #FF8C00;
  --silver-metallic: #C0C0C0;
  --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.6);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Roboto Condensed', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
header {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo img {
  height: 50px;
  width: auto;
  border: 2px solid var(--orange-metallic);
  border-radius: 50%;
  padding: 4px;
}

.logo span {
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-metallic);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a i {
  margin-right: 6px;
  color: var(--orange-metallic);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gold);
}

/* ===== HERO CON IMAGEN DE FONDO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1600&q=80');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-text {
  max-width: 700px;
}

.hero-tagline {
  color: var(--orange-metallic);
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 1rem;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-text h1 span {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
}

.hero-desc {
  font-size: 1.2rem;
  color: #cccccc;
  max-width: 500px;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--orange-metallic);
  color: var(--white);
  box-shadow: 0 0 30px rgba(204, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(204, 0, 0, 0.5);
}

.btn-primary i {
  margin-right: 10px;
}

/* ===== SECCIONES GENERALES ===== */
.section {
  padding: 80px 0;
  background: var(--black);
  border-bottom: 1px solid var(--medium-gray);
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.section-title span {
  color: var(--orange-metallic);
}

.section-subtitle {
  text-align: center;
  color: #aaaaaa;
  margin-bottom: 50px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* ===== PRODUCTOS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--dark-gray);
  border-radius: var(--radius);
  padding: 20px 16px 24px;
  text-align: center;
  border: 1px solid var(--medium-gray);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.08);
}

.product-card img {
  flex-shrink: 0;
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: var(--black);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--medium-gray);
}

/* NUEVO: Wrapper para el título */
.product-card .title-wrapper {
  flex: 1; /* Ocupa todo el espacio disponible */
  display: flex;
  align-items: center; /* Centra verticalmente */
  justify-content: center;
  min-height: 60px; /* Altura mínima para 2 líneas */
  margin-bottom: 4px;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0; /* Elimina márgenes para mejor control */
}

.product-card .price {
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 900;
  font-size: 1.4rem;
  margin: 6px 0 14px;
}

.btn-small {
  margin-top: auto;
  align-self: center;
  background: var(--orange-metallic);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-small:hover {
  background: var(--gold);
  color: var(--black);
  transform: scale(1.05);
}

/* ===== BENEFICIOS ===== */
.benefits {
  background: var(--dark-gray);
  border-bottom: 2px solid var(--gold);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.benefit-item i {
  font-size: 3rem;
  color: var(--orange-metallic);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.15));
}

.benefit-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.benefit-item p {
  color: #bbbbbb;
  font-size: 0.95rem;
}

/* ===== TESTIMONIOS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--dark-gray);
  padding: 28px;
  border-radius: var(--radius);
  border-left: 6px solid var(--gold);
  transition: all var(--transition);
}

.testimonial-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-heavy);
}

.testimonial-card p {
  font-style: italic;
  color: #dddddd;
}

.testimonial-card .author {
  margin-top: 14px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.testimonial-card .stars {
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 8px;
}

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.contact-info h3 span {
  color: var(--gold);
}

.contact-info p {
  color: #bbbbbb;
  margin-bottom: 12px;
}

.contact-info i {
  color: var(--gold);
  width: 28px;
}

.social {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social a {
  font-size: 1.8rem;
  color: var(--white);
  transition: all var(--transition);
}

.social a:hover {
  color: var(--gold);
  transform: scale(1.2);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--dark-gray);
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  margin-bottom: 16px;
  transition: border var(--transition);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.08);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777777;
}

/* ===== FOOTER ===== */
footer {
  background: var(--black);
  border-top: 2px solid var(--gold);
  padding: 30px 0;
  text-align: center;
  color: #888888;
}

footer a {
  color: var(--gold);
  transition: color var(--transition);
}

footer a:hover {
  color: var(--white);
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: #fff;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 200;
}

.whatsapp-float:hover {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    background-attachment: scroll;
    background-position: center 20%;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--black);
    padding: 20px 0;
    gap: 14px;
    border-top: 1px solid var(--gold);
    margin-top: 12px;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }
  .hero {
    min-height: 70vh;
  }
  .section-title {
    font-size: 2rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }
  .product-card img {
    height: 150px;
  }
  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 2.2rem;
    bottom: 18px;
    right: 18px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .hero-tagline {
    font-size: 0.8rem;
  }
  .btn {
    padding: 12px 28px;
    font-size: 0.8rem;
  }
}

/* ============================================
   MODAL (Política de Privacidad y Términos)
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #1a1a1a;
  color: #e0e0e0;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--orange-metallic, #d4a24e);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
}

.modal-content h2 {
  color: var(--orange-metallic, #d4a24e);
  margin-top: 0;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--orange-metallic, #d4a24e);
  padding-bottom: 12px;
}

.modal-content h3 {
  color: var(--orange-metallic, #d4a24e);
  margin-top: 24px;
  font-size: 1.2rem;
}

.modal-content p, .modal-content li {
  line-height: 1.8;
  font-size: 0.95rem;
  color: #c0c0c0;
}

.modal-content ul {
  padding-left: 20px;
}

.modal-content li {
  margin-bottom: 6px;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
  padding: 0 8px;
}

.modal-close:hover {
  transform: rotate(90deg);
  color: var(--orange-metallic, #d4a24e);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Scrollbar personalizado para el modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--orange-metallic, #d4a24e);
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    padding: 24px;
    max-height: 90vh;
  }
  
  .modal-content h2 {
    font-size: 1.4rem;
  }
  
  .modal-content p, .modal-content li {
    font-size: 0.85rem;
  }
}