:root {
  --barca-blue: #004d98;
  --barca-red: #a50044;
  --barca-gold: #fdb913;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #333;
  --text-gray: #666;
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 40px;
  width: auto;
}

.brand-text {
  font-weight: 700;
  color: var(--barca-blue);
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.nav-menu a:hover {
  color: var(--barca-blue);
}

.cta-btn {
  background: var(--barca-red);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.cta-btn:hover {
  background: #8a0037;
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark-gray);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu - Now works on all devices */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  padding-top: 80px;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  padding: 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 1.5rem 0;
}

.mobile-menu a {
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s;
}

.mobile-menu a:hover {
  background: var(--light-gray);
  color: var(--barca-blue);
}

.mobile-cta-btn {
  background: var(--barca-red);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 2rem;
  font-size: 1.1rem;
  width: 100%;
  max-width: 300px;
}

.mobile-cta-btn:hover {
  background: #8a0037;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .cta-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    padding: 100px 1rem 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .stat {
    min-width: 200px;
  }

  .noticias-grid {
    grid-template-columns: 1fr;
  }

  .historia-content {
    flex-direction: column;
    text-align: center;
  }

  .estadio-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lamasia-content {
    grid-template-columns: 1fr;
  }

  .jugadores-grid {
    grid-template-columns: 1fr;
  }

  .trofeos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contactos-content {
    grid-template-columns: 1fr;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-policies {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 1rem;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat {
    padding: 1rem;
    min-width: 180px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .trofeos-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .estadio-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .modal-body {
    padding: 1rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 2rem 2rem;
  background: linear-gradient(
      135deg,
      rgba(0, 77, 152, 0.4) 0%,
      rgba(165, 0, 68, 0.4) 100%
    ),
    url("images/stadium.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--barca-gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 600;
}

.hero-btn {
  background: var(--barca-gold);
  color: var(--dark-gray);
  border: none;
  padding: 18px 40px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(253, 185, 19, 0.3);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(253, 185, 19, 0.4);
}

.hero-image {
  display: none;
}

.hero-image img {
  display: none;
}

/* Noticias */
.noticias {
  padding: 80px 0;
  background: var(--white);
}

.noticias h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--barca-blue);
  margin-bottom: 3rem;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.noticia-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.noticia-card:hover {
  transform: translateY(-5px);
}

.noticia-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.noticia-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.noticia-fecha {
  color: var(--barca-red);
  font-size: 0.9rem;
  font-weight: 600;
}

.noticia-card h3 {
  color: var(--barca-blue);
  margin: 0.5rem 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.noticia-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.5;
}

.noticia-link {
  color: var(--barca-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.noticia-link:hover {
  text-decoration: underline;
}

/* Historia */
.historia {
  padding: 80px 0;
  background: var(--light-gray);
}

.historia h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--barca-blue);
  margin-bottom: 3rem;
}

.historia-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.historia-text h3 {
  color: var(--barca-red);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.historia-text p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.historia-image img {
  max-height: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Jugadores */
.jugadores {
  padding: 80px 0;
}

.jugadores h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--barca-blue);
  margin-bottom: 3rem;
}

.jugadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.jugador-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  position: relative;
}

.jugador-card:hover {
  transform: translateY(-5px);
}

.jugador-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.jugador-card h3 {
  color: var(--barca-blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.jugador-card p {
  color: var(--text-gray);
  margin-bottom: 0.5rem;
}

.jugador-numero {
  background: var(--barca-red);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.jugador-stats {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--barca-gold);
  font-weight: 600;
}

/* Palmarés */
.palmares {
  padding: 80px 0;
  background: var(--barca-blue);
  color: var(--white);
}

.palmares h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.palmares-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.trofeos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.trofeo {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.trofeo .numero {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--barca-gold);
  margin-bottom: 0.5rem;
}

.trofeo .titulo {
  font-size: 1rem;
  font-weight: 600;
}

/* Estadio */
.estadio {
  padding: 80px 0;
  background: var(--light-gray);
}

.estadio h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--barca-blue);
  margin-bottom: 3rem;
}

.estadio-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.estadio-info h3 {
  color: var(--barca-red);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.estadio-info p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.estadio-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.estadio-stat {
  text-align: center;
}

.estadio-stat .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--barca-blue);
}

.estadio-stat .stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
}

.estadio-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* La Masia */
.lamasia {
  padding: 80px 0;
  background: var(--white);
}

.lamasia h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--barca-blue);
  margin-bottom: 3rem;
}

.lamasia-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.lamasia-text h3 {
  color: var(--barca-red);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.lamasia-text p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.lamasia-achievements {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.lamasia-achievements h4 {
  color: var(--barca-blue);
  margin-bottom: 1rem;
}

.lamasia-achievements ul {
  list-style: none;
  padding-left: 0;
}

.lamasia-achievements li {
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.lamasia-achievements li:before {
  content: "⚽";
  position: absolute;
  left: 0;
}

.lamasia-players h4 {
  color: var(--barca-blue);
  margin-bottom: 1rem;
  text-align: center;
}

.lamasia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lamasia-player {
  text-align: center;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 10px;
}

.lamasia-player img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.lamasia-player span {
  font-size: 0.9rem;
  color: var(--barca-blue);
  font-weight: 600;
}

/* Comunidad */
.comunidad {
  padding: 80px 0;
  background: var(--light-gray);
  text-align: center;
}

.comunidad h2 {
  font-size: 2.5rem;
  color: var(--barca-blue);
  margin-bottom: 1rem;
}

.comunidad > p {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
}

.comunidad-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature h3 {
  color: var(--barca-red);
  margin-bottom: 1rem;
}

.join-btn {
  background: var(--barca-red);
  color: var(--white);
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.join-btn:hover {
  background: #8a0037;
}

/* Tienda */
.tienda {
  padding: 80px 0;
}

.tienda h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--barca-blue);
  margin-bottom: 1rem;
}

.tienda > p {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.producto {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.producto:hover {
  transform: translateY(-5px);
}

.producto img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.producto h3 {
  color: var(--barca-blue);
  margin-bottom: 0.5rem;
}

.precio {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--barca-red);
}

.tienda-link {
  display: block;
  text-align: center;
  background: var(--barca-gold);
  color: var(--dark-gray);
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  max-width: 300px;
  margin: 0 auto;
  transition: transform 0.3s;
}

.tienda-link:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-section h4 {
  color: var(--barca-gold);
  margin-bottom: 1rem;
}

.footer-section h5 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--barca-gold);
}

.footer-apps {
  margin-top: 1rem;
}

.app-links {
  display: flex;
  gap: 0.5rem;
}

.app-link {
  background: var(--barca-blue);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.social-links a:hover {
  transform: scale(1.2);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.newsletter-form button {
  background: var(--barca-red);
  color: var(--white);
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-policies {
  display: flex;
  gap: 1rem;
}

.footer-policies a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-policies a:hover {
  color: var(--barca-gold);
}

/* Galería */
.galeria {
  padding: 80px 0;
  background: var(--light-gray);
}

.galeria h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--barca-blue);
  margin-bottom: 3rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.galeria-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.galeria-item:hover {
  transform: scale(1.05);
}

.galeria-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.galeria-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  align-items: end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.galeria-item:hover .galeria-overlay {
  opacity: 1;
}

.galeria-title {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Contactos */
.contactos {
  padding: 80px 0;
  background: var(--white);
}

.contactos h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--barca-blue);
  margin-bottom: 3rem;
}

.contactos-content {
  display: flex;
  flex-direction: column;
  /* grid-template-columns: 1fr 1fr; */
  gap: 3rem;
  align-items: start;
}

.contactos-info {
  width: 100%;
}

.contactos-info h3 {
  color: var(--barca-red);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 10px;
}

.contacto-icon {
  font-size: 1.5rem;
  color: var(--barca-blue);
  min-width: 40px;
}

.contacto-text {
  color: var(--text-gray);
}

.contacto-text strong {
  color: var(--barca-blue);
  display: block;
  margin-bottom: 0.25rem;
}

.contactos-form {
  width: 100%;
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 15px;
}

.contactos-form h3 {
  color: var(--barca-blue);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--barca-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--barca-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  background: var(--barca-red);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.form-submit:hover {
  background: #8a0037;
}

.order-btn {
  background: var(--barca-gold);
  color: var(--dark-gray);
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
  width: 100%;
}

.order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(253, 185, 19, 0.3);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 15px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  background: var(--barca-blue);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.close {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.close:hover {
  opacity: 0.7;
}

.modal-body {
  padding: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-item {
  text-align: center;
  padding: 1rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.product-item:hover {
  border-color: var(--barca-blue);
  transform: translateY(-2px);
}

.product-item.selected {
  border-color: var(--barca-red);
  background: var(--light-gray);
}

.product-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}

.product-item h4 {
  color: var(--barca-blue);
  margin: 0.5rem 0;
  font-size: 1rem;
}

.product-item .price {
  color: var(--barca-red);
  font-weight: 700;
  font-size: 1.1rem;
}

.order-form {
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
}

.order-summary {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.order-summary h4 {
  color: var(--barca-blue);
  margin-bottom: 0.5rem;
}

.order-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--barca-red);
  text-align: right;
  margin-top: 0.5rem;
}
