/* Variables de Color */
:root {
  --primary-color: #004D40;
  --secondary-color: #FFD700;
  --accent-color: #2E8B57;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #F8F9FA;
  --bg-dark: #E0F2F1;
  --white: #ffffff;
  --shadow-light: rgba(0,0,0,0.1);
  --shadow-medium: rgba(0,0,0,0.15);
  --shadow-strong: rgba(0,0,0,0.2);
}

/* Reset & Typography */
body, h1, h2, h3, p, ul, li, a, button, input, textarea {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
body {
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  padding-top: 70px;
  overflow-x: hidden;
  /* Fade background animación */
  animation: bgFade 2s;
}
@keyframes bgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  transition: transform 0.4s cubic-bezier(.36,2,.41,-0.3), box-shadow 0.4s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
  opacity: 0.99;
}

/* Títulos */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}
h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.8rem; font-weight: 700; }
h3 { font-size: 1.8rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-dark); }

/* Botones */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s cubic-bezier(.36,2,.41,-0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 8px 15px var(--shadow-light);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-color);
  box-shadow: 0 12px 20px var(--shadow-medium);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 12px 20px var(--shadow-medium);
  transform: translateY(-2px) scale(1.03);
}

/* Navbar */
nav.navbar {
  box-shadow: 0 2px 8px var(--shadow-light);
  z-index: 1000;
  height: 70px;
  transition: all 0.3s ease;
}

/* Logo y título */
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  height: 100%;
  letter-spacing: 1px;
}
.logo-text {
  font-size: 1.2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  white-space: nowrap;
  transition: font-size 0.2s;
}

/* Responsive Navbar title */
@media (max-width: 768px) {
  .logo-text {
    font-size: 1rem;
    text-align: left;
    white-space: normal; /* Permite salto de línea si es necesario */
    font-weight: 700;
    padding-right: 32px; /* Espacio para el icono del menú hamburguesa */
    color: var(--primary-color);
    /* Elimina max-width y overflow para que no se corte */
  }
}

nav ul li a {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s, letter-spacing 0.3s;
}
nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(.36,2,.41,-0.3);
}
nav ul li a:hover::after {
  width: 100%;
}

nav .menu-toggle {
  font-size: 1.8rem;
  color: var(--primary-color);
  cursor: pointer;
  border: none;
  background: none;
}

/* Hero Section */
#hero {
  position: relative;
  height: 90vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
  overflow: hidden;
  /* Fade-in animación */
  animation: heroFade 1.6s;
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}

#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="pattern-circles" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="url(%23pattern-circles)"/></svg>');
  opacity: 0.3; z-index: 0;
}

.logo-image {
  max-width: 250px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
  transition: transform 0.7s cubic-bezier(.36,2,.41,-0.3);
}
.logo-image:hover {
  transform: scale(1.06) rotate(-2deg);
}

#hero .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Hero Título y Párrafo en blanco */
#hero h1, #hero p {
  color: #fff !important;
  text-shadow: 0 4px 8px var(--shadow-strong);
}

/* Animación para secciones y imágenes */
.images img, .instagram-feed .instagram-media {
  opacity: 0.95;
  transition: box-shadow 0.4s, transform 0.4s;
}
.images img:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: 0 10px 25px var(--shadow-medium);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}
.section-title p {
  max-width: 700px;
  margin: 0.5rem auto 0;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* About Section */
#about { background: var(--bg-light); }
#about .about-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
  text-align: center;
  color: var(--text-light);
}

#about .store-section {
  text-align: center;
  margin-top: 2rem;
}
#about .store-section h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
#about .store-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--text-light);
}
#about .images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
#about .images img {
  border-radius: 15px;
  box-shadow: 0 6px 15px var(--shadow-light);
  cursor: pointer;
  object-fit: cover;
  height: 220px;
  width: 100%;
}

#about .quote {
  font-style: italic;
  margin-top: 2.5rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Gallery Section (Instagram) */
#gallery {
  background: linear-gradient(to bottom, var(--bg-light), var(--bg-dark));
}
.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}
.instagram-feed .instagram-media {
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 12px;
  box-shadow: 0 4px 18px var(--shadow-medium);
  transition: box-shadow 0.4s, transform 0.4s;
}
.instagram-feed .instagram-media:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px var(--shadow-strong);
}

.instagram-placeholder {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 2rem;
  border: 1px dashed var(--text-light);
  border-radius: 10px;
  grid-column: 1 / -1;
}

.instagram-button-container {
  margin-top: 3rem;
}

/* Contact Section */
#contact {
  background: var(--white);
  padding-bottom: 0;
}
#contact .contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 3rem;
  background: var(--bg-light);
  border-radius: 15px;
  box-shadow: 0 8px 20px var(--shadow-light);
  padding: 3rem;
  text-align: center;
}

#contact .social-links-container h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}
#contact .social-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
}
#contact .social-links a {
  color: var(--primary-color);
  font-size: 2.5rem;
  transition: color 0.3s, transform 0.3s;
}
#contact .social-links a:hover {
  color: var(--secondary-color);
  transform: translateY(-5px) scale(1.1);
}
#contact .social-links a .fa-tiktok {
  color: #000;
}
#contact .social-links a:hover .fa-tiktok {
  color: #69c9d0;
}

#contact .map-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
#contact .map-container h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--primary-color);
}
#contact iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 20px var(--shadow-light);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #fff !important;
  text-align: center;
  padding: 2.5rem 0;
  font-size: 0.95rem;
  animation: fadeInFooter 1.5s;
}
@keyframes fadeInFooter {
  from { opacity: 0; }
  to { opacity: 1; }
}
footer p { margin-bottom: 0; color: #fff !important; }

#whatsapp-float { display: none; }

/* Responsive Design */
@media (max-width: 992px) {
  h1 { font-size: 3.8rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 1.6rem; }
  .logo { font-size: 1.3rem; gap: 0.5rem; }
  #hero h1 { font-size: 3.5rem; }
  #hero p { font-size: 1.4rem; }
  #about .images { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  #about .images img { height: 180px; }
  .instagram-feed { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  #contact .contact-content { padding: 2.5rem; }
  #contact iframe { height: 300px; }
}
@media (max-width: 768px) {
  body { padding-top: 60px; }
  nav.navbar { height: 60px; }
  .logo { font-size: 1.2rem; }
  .logo-text { font-size: 1rem; }
  nav ul {
    flex-direction: column;
    background: var(--white);
    width: 100%;
    box-shadow: 0 8px 20px var(--shadow-medium);
    padding: 1.5rem;
    border-radius: 0 0 15px 15px;
  }
  nav ul li { margin-bottom: 1rem; }
  nav ul li:last-child { margin-bottom: 0; }
  nav ul li a { padding: 0.75rem 1rem; display: block; border-radius: 8px; }
  nav ul li a:hover { background: var(--bg-light); text-decoration: none; }
  nav ul li a::after { display: none; }
  nav .menu-toggle { display: block; }
  #hero { height: 80vh; }
  #hero h1 { font-size: 2.8rem; }
  #hero p { font-size: 1.2rem; }
  #hero .buttons { flex-direction: column; gap: 1rem; }
  #hero .buttons a { margin: 0; width: 80%; max-width: 250px; }
  .section-title h2 { font-size: 2.2rem; }
  .section-title p { font-size: 1rem; }
  #about .images { grid-template-columns: 1fr; }
  #about .images img { height: 200px; }
  #contact .social-links a { font-size: 2rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
  .logo { font-size: 1.1rem; }
  .logo-text { font-size: 0.9rem; }
  #hero h1 { font-size: 2.2rem; }
  #hero p { font-size: 1rem; }
  .section-title h2 { font-size: 1.8rem; }
  #about .about-intro { font-size: 1rem; }
  #gallery img { height: 200px; }
  #contact .contact-content { padding: 2rem; }
  #contact .social-links a { font-size: 1.8rem; }
  #contact iframe { height: 250px; }
}
