/* El Mejor Huevo - Estilo Asturiano Premium */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --verde-asturias: #1e4d2b;
  --verde-claro: #3a7d44;
  --verde-suave: #e8f0e9;
  --crema: #faf6f0;
  --crema-oscuro: #f0e6d8;
  --marron: #6b4423;
  --marron-claro: #a67c52;
  --dorado: #c9a227;
  --texto: #2c2c2c;
  --blanco: #ffffff;
  --sombra: rgba(30, 77, 43, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--texto);
  background-color: var(--crema);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--verde-asturias);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--sombra);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 52px;
  width: auto;
}

.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--verde-asturias);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--marron);
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--verde-asturias);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dorado);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--verde-asturias);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/valle-ibias.jpg') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 77, 43, 0.55) 0%,
    rgba(30, 77, 43, 0.75) 60%,
    rgba(30, 77, 43, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--dorado);
  color: var(--verde-asturias);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  line-height: 1.1;
}

.hero .subtitulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-style: italic;
  color: var(--crema);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: var(--dorado);
  color: var(--verde-asturias);
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--dorado);
}

.btn:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  margin-left: 1rem;
}

.btn-outline:hover {
  background: white;
  color: var(--verde-asturias);
}

/* Sections common */
section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.section-header .linea {
  width: 80px;
  height: 3px;
  background: var(--dorado);
  margin: 0 auto 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: #555;
  font-size: 1.1rem;
}

/* Sobre */
.sobre {
  background: var(--blanco);
}

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

.sobre-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px var(--sombra);
}

.sobre-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.sobre-img .badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--verde-asturias);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.sobre-texto h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.sobre-texto p {
  margin-bottom: 1rem;
  color: #444;
}

.sobre-texto .destacado {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--verde-asturias);
  border-left: 4px solid var(--dorado);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
}

/* Producto */
.producto {
  background: var(--verde-suave);
}

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

.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--sombra);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px var(--sombra);
}

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

.card-body {
  padding: 1.75rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: #555;
  font-size: 0.98rem;
}

.premium-tag {
  display: inline-block;
  background: var(--dorado);
  color: var(--verde-asturias);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

/* Galería */
.galeria {
  background: var(--crema);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.galeria-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 8px 25px var(--sombra);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.galeria-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 1.5rem 1rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Ubicación */
.ubicacion {
  background: white;
}

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

.ubicacion-texto h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.ubicacion-texto p {
  margin-bottom: 1rem;
  color: #444;
}

.ubicacion-lista {
  list-style: none;
  margin-top: 1.5rem;
}

.ubicacion-lista li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.ubicacion-lista .icon {
  color: var(--verde-claro);
  font-size: 1.3rem;
  line-height: 1;
}

.ubicacion-img {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px var(--sombra);
}

.ubicacion-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Contacto */
.contacto {
  background: var(--verde-asturias);
  color: white;
  text-align: center;
}

.contacto h2 {
  color: white;
}

.contacto .linea {
  background: var(--dorado);
}

.contacto p {
  max-width: 500px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.contacto-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2rem;
}

.contacto-item {
  background: rgba(255,255,255,0.1);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  min-width: 220px;
}

.contacto-item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.contacto-item span {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Footer */
footer {
  background: #132b18;
  color: rgba(255,255,255,0.8);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--dorado);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--dorado);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .sobre-grid,
  .ubicacion-content {
    grid-template-columns: 1fr;
  }

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

  nav ul {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero .btn-outline {
    margin-left: 0;
    margin-top: 1rem;
  }
}

@media (max-width: 600px) {
  .galeria-grid {
    grid-template-columns: 1fr;
  }

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

  section {
    padding: 3.5rem 1.2rem;
  }
}

/* Animaciones suaves */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 1s ease 0.2s both;
}
