/* Estilos base se mantienen */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Remover estilos de lista */
ul,
ol {
  list-style: none;
}

/* Resetear enlaces */
a {
  text-decoration: none;
  color: inherit;
} 

/* Resetear imagenes*/
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Nueva paleta de colores inspirada en Apple */
:root {
  --apple-white: #ffffff;
  --apple-light-gray: #f5f5f7;
  --apple-medium-gray: #86868b;
  --apple-dark-gray: #1d1d1f;
  --apple-blue: #0071e3;
  --apple-light-blue: #76b9ed;
  --apple-accent: #6e6e73;
  --apple-footer: #f5f5f7;
  --apple-footer-text: #86868b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--apple-white);
  color: var(--apple-dark-gray);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header estilo Apple */
header {
  background-color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap-reverse;
}

header > nav > ul {
  display: flex;
  gap: 24px;
}

header > nav > ul > li > a {
  font-size: 14px;
  color: var(--apple-dark-gray);
  transition: color 0.2s ease;
}

header > nav > ul > li > a:hover {
  color: var(--apple-blue);
}

header > nav > div > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

#apple {
  width: 30px;
  height: 30px;
}

/* Hero section estilo Apple */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 60px 20px;
  background-color: var(--apple-white);
}
 
#hero img {
  width: 400px; 
  object-fit: contain; 
  margin: 2rem 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

#hero div {
  text-align: center;
  max-width: 600px;
}

#hero div p {
  font-size: 21px;
  line-height: 1.4;
  color: var(--apple-medium-gray);
  margin-bottom: 10px;
}

/* Features section */
#features {
  display: flex;
  justify-content: center;
  margin: 50px auto;
  padding: 40px 20px;
  gap: 40px;
  max-width: 1200px;
  background-color: var(--apple-light-gray);
  border-radius: 16px;
}

#features > div {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 15px;
  padding: 20px;
  background-color: var(--apple-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

#features > div:hover {
  transform: translateY(-5px);
}

#features > div > h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--apple-dark-gray);
}

#features > div > p {
  text-align: center;
  color: var(--apple-medium-gray);
  font-size: 16px;
}

#metodos{
  display: flex;
  width: 50%;
  margin: 0 auto;
  background-color: var(--apple-light-gray);
  border-radius: 16px;
  gap:10px;
  justify-content: center;
}
/* Delivery y Payment sections */
#delivery, #payment-methods {
  max-width: 1000px;
  margin: 30px 30px;
  padding: 40px 20px;
  background-color: var(--apple-white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

#delivery:hover, #payment-methods:hover {
  transform: translateY(-5px);
}

#delivery h2, #payment-methods h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--apple-dark-gray);
  font-weight: 600;
}

#delivery p, #payment-methods p {
  color: var(--apple-medium-gray);
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
}

/* Galería estilo Apple */
#galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#galeria > img {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#galeria > img:hover {
  transform: scale(1.03);
}

/* Footer estilo Apple */
footer {
  margin-top: auto;
  width: 100%;
  padding: 40px 20px;
  background-color: var(--apple-footer);
  color: var(--apple-footer-text);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-contact, .footer-links, .footer-social {
  flex: 1;
  min-width: 250px;
}

footer h3 {
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--apple-dark-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

footer address {
  font-style: normal;
  line-height: 1.6;
}

footer a {
  color: var(--apple-footer-text);
  transition: color 0.2s ease;
  font-size: 14px;
}

footer a:hover {
  color: var(--apple-blue);
  text-decoration: underline;
}

.footer-links ul, .social-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icons {
  flex-direction: row;
  gap: 15px;
}

.social-icons img {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.social-icons a:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.footer-copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 12px;
}
/* Media Queries */

/* Pantallas de hasta 1024px (Tabletas y laptops pequeñas) */
@media (max-width: 1024px) {
  header nav {
    flex-direction: column;
    align-items: center;
  }
  header > nav > ul {
    gap: 16px;
  }
  #hero img {
    width: 300px;
  }
  #features {
    flex-direction: column;
    align-items: center;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Pantallas de hasta 768px (Tabletas en vertical y móviles grandes) */
@media (max-width: 768px) {
  header > nav > ul {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  #hero h1 {
    font-size: 36px;
  }
  #hero div p {
    font-size: 18px;
  }
  #features {
    gap: 20px;
  }
  #features > div {
    width: 100%;
    max-width: 400px;
  }
}


/* Pantallas de hasta 480px (Móviles pequeños) */
@media (max-width: 480px) {
  header nav {
    padding: 10px;
  }
  header > nav > ul {
    gap: 8px;
  }
  #hero {
    padding: 40px 10px;
  }
  #hero h1 {
    font-size: 28px;
  }
  #hero img {
    width: 250px;
  }
  #features {
    padding: 20px 10px;
  }
  #delivery, #payment-methods {
    padding: 20px 10px;
  }
}

