.header-contenido img {
  width: 220px;   
  height: auto;
}
h1 {
  font-family: 'Rye', serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.35);
}

@media (max-width: 600px){
  h1 {
    font-size: 36px;
  }
}
  
  .imagen-acerca video {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.producto {
  width: 100%;
  height: 220px; 
  overflow: hidden;
}

.producto img {
  width: 120%;
  height: 150%;
  object-fit: cover;
}

#splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  background: linear-gradient(135deg, #b88b5c, #d6b48a);
}

/* efecto de luz */
#splash::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%);
  border-radius: 50%;
  animation: pulso 2.5s ease-in-out infinite;
}
#splash.ocultar {
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease;
}
@keyframes girarSierra {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes entradaLogo {
  0% {
    transform: translateY(-160px) scale(0.7);
    opacity: 0;
  }
  60% {
    transform: translateY(15px) scale(1.05);
    opacity: 1;
  }
  80% {
    transform: translateY(-5px) scale(0.98);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}




body{
font-family:Arial,sans-serif;
background:#f4f4f4;
color:var(--gris-texto);
animation:fadeIn .8s ease;
}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideDown{from{transform:translateY(-15px);opacity:0}to{opacity:1}}
@keyframes zoomIn{from{transform:scale(.85);opacity:0}to{opacity:1}}

header{
background:var(--color-principal);
color:white;
padding:40px 30px;
}

.header-contenido{
max-width:1300px;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;

}

h1{animation:slideDown .8s}

/* CONTENEDOR DEL LOGO (giro) */
.logo-wrap{
  width:180px;
  height:180px;
  border-radius:50%;
  background: transparent;   /* elimina fondo negro */
  box-shadow: none;          /* elimina halo */


  /* 🔥 SOLO ROTA AQUÍ */
  animation: girarSierra 1.2s linear infinite;
}

/* IMAGEN (entrada) */
.logo-wrap img {
  width: 90%;
  height: 90%;
  object-fit: contain;

  /* 🔥 SOLO ENTRADA */
  animation: entradaLogo 0.8s ease-out;
}
/* NAV */
nav{
background:#000;
max-width:1100px;
margin:25px auto;
border-radius:16px;
padding:12px 18px;
display:flex;
gap:20px;
align-items:center;
}

.nav-links{display:flex;gap:20px}

nav a{
color:white;
font-weight:600;
padding:8px 18px;
border-radius:10px;
transition:.3s;
text-decoration:none;
}

nav a:hover{background:var(--color-principal)}

.zona-letrero{flex:1;overflow:hidden;height:24px}

.letrero{
white-space:nowrap;
color:white;
font-weight:700;
animation:moverTexto 12s linear infinite;
}

@keyframes moverTexto{
from{transform:translateX(100%)}
to{transform:translateX(-100%)}
}

.contenedor{
display:grid;
grid-template-columns:260px 1fr 260px;
gap:20px;
max-width:1300px;
margin:auto;
padding:20px;
}

aside,main{
background:white;
border-radius:16px;
padding:22px;
box-shadow:0 6px 18px rgba(0,0,0,.1);
}

h2{color:var(--color-principal);margin-bottom:10px}

.separador{height:1px;background:var(--gris-suave);margin:15px 0}

/*Productos*/
.productos{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:16px;
}

.card{
border:2px solid var(--gris-suave);
border-radius:14px;
padding:16px;
text-align:center;
transition:.3s;
}
.card{
  display:flex;
  flex-direction:column;
  align-items:center;
}


.card-img img{
  transition: transform 0.35s ease;
}

.card:hover .card-img img{
  transform: scale(1.08);
}
.card-img{
  width:100%;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f4f4f4;
  border-radius:10px;
  overflow:hidden;
}

.card-img img{
  width: 150%;
  height: 150%;
  object-fit: cover;
}

.card:hover{transform:translateY(-5px)}
 
.card img{
  width:120%;
  height:90%;
  border-radius:10px;
  margin-bottom:8px;
  background:#f4f4f4;
}
/*Contacto*/
input,textarea{
width:100%;
padding:12px;
margin-top:12px;
border-radius:8px;
border:1px solid var(--gris-suave);
}

button{
margin-top:14px;
padding:12px;
width:100%;
background:var(--color-principal);
color:white;
border:none;
border-radius:8px;
font-weight:600;
cursor:pointer;
}

/*Instagram*/
.galeria-instagram{
display:grid;
grid-template-columns:1fr;
gap:16px;
}

.galeria-instagram iframe{
width:100%;
height:480px;
border:none;
border-radius:12px;
background:white;
}

/* FOOTER */
footer{
background:var(--color-principal);
color:white;
text-align:center;
padding:24px;
margin-top:30px;
}

.redes a{color:white;font-size:24px;margin:0 10px}

.whatsapp{
position:fixed;
bottom:20px;
right:20px;
background:#25d366;
padding:16px;
border-radius:50%;
color:white;
font-size:22px;
}

/* MÓVIL */
@media(max-width:900px){
.contenedor{grid-template-columns:1fr}
.header-contenido{flex-direction:column;text-align:center}
nav{flex-direction:column}
}

@media(max-width:600px){
.productos{grid-template-columns:1fr}
h1{font-size:26px}
.galeria-instagram iframe{height:420px}
}
/* Cartel*/
.cartel{
margin-top:12px;
margin-left:auto;
margin-right:auto;
display:inline-block;
padding:12px 26px;
font-size:20px;
font-weight:700;
color:white;
border-radius:8px;
background:linear-gradient(135deg,#8b5a2b,#b88b5c);
box-shadow:0 8px 18px rgba(0,0,0,.35);
border:3px solid #6d4321;
animation:balanceo 3s ease-in-out infinite;
transform-origin:top center;
}

.cartel.abierto{
background:linear-gradient(135deg,#2e7d32,#4caf50);
border-color:#1b5e20;
}

.cartel.cerrado{
background:linear-gradient(135deg,#8b0000,#c62828);
border-color:#5f0000;
}

@keyframes balanceo{
0%{transform:rotate(0deg)}
25%{transform:rotate(1.5deg)}
50%{transform:rotate(0deg)}
75%{transform:rotate(-1.5deg)}
100%{transform:rotate(0deg)}
}
.video-apertura {
  width: 100%;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.video-apertura video {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
body.dark {
  background-color: #121212;
  color: #e0e0e0;
}

body.dark header,
body.dark nav,
body.dark footer,
body.dark .card {
  background-color: #1e1e1e;
}

body.dark a {
  color: #d2a679;
}
.imagen-acerca {
    margin-top: 25px;
    text-align: center;
}

.imagen-acerca img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.imagen-acerca img {
    animation: fadeIn 1s ease forwards;
}
:root{
  --color-principal:#b88b5c;
  --gris-texto:#444;
  --gris-suave:#e5e5e5;
  --madera-fondo:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.06) 0px,
      rgba(255,255,255,0.06) 2px,
      rgba(0,0,0,0.04) 5px,
      rgba(0,0,0,0.04) 11px
    ),
    linear-gradient(135deg,#d6b48a,#b88b5c);
}

.splash-contenido{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.splash-texto {
    margin-top:18px;
    font-size:22px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;

    background: linear-gradient(90deg, #ffffff, #ffe0b2, #ffffff);
    background-size: 200% auto;

    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;

    animation: brilloTexto 2s linear infinite, aparecerTexto 0.8s ease forwards;
    animation-delay: 0.9s;
}
@keyframes aparecerTexto{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
header{
  background: var(--madera-fondo);
}

/* transparencia general */
header *{
  background: transparent;
}

/* cartel de estado */
.estado{
  padding:6px 14px;
  border-radius:12px;
  font-weight:700;
  color:white;
}

/* Colores del cartel */
.estado.abierto{
  background:#2e7d32;
}

.estado.cerrado{
  background:#c62828;
}

footer{
  background: var(--madera-fondo);
}

footer *{
  background: transparent !important;
}


.logo-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}
.producto img{
  width:100%;
  height:100%;
  object-fit:contain;
  background:#f4f4f4;
}
.producto{
  display:flex;
  flex-direction:column;
  height:320px;
}
.logo-wrap{
  width:180px;
  height:180px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.logo-wrap img{
  width:90%;
  height:90%;
  object-fit:contain;
}
@keyframes fondoAnimado {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulso {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}
@keyframes entradaLogo {
    0% {
        transform: translateY(-160px) scale(0.7);
        opacity: 0;
    }
    60% {
        transform: translateY(15px) scale(1.05);
        opacity: 1;
    }
    80% {
        transform: translateY(-5px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}
@keyframes brilloTexto {
    to { background-position: 200% center; }
}
.carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slide img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.dust {
  position: fixed;
  width: 8px;
  height: 4px;
  background: linear-gradient(90deg, #d2b48c, #a67c52);
  border-radius: 2px;
  pointer-events: none;
  z-index: 999999;
}
body {
  background: 
    linear-gradient(rgba(255,240,210,0.75), rgba(255,240,210,0.75)),
    url('https://images.unsplash.com/photo-1473448912268-2022ce9509d8');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
@media (max-width: 768px) {
  .slide {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .slide {
    grid-template-columns: 1fr;
  }
}
.admin-btn {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;   /* lado izquierdo */
  width: 40px;
  height: 40px;
  z-index: 9999;
}
#servicios-dinamicos .card {
  max-width: 200px;
  font-size: 13px;
}
#servicios-dinamicos .card img {
  object-fit: contain;
  object-position: 50% 0%;
}
#servicios-dinamicos .card h3 {
  font-size: 18px;
}

#servicios-dinamicos .descripcion {
  font-size: 15px;
}
/* ===== FIX telefono ===== */
@media (max-width: 600px){

  /* contenedor de productos */
  .producto{
    width: 100%;
    aspect-ratio: 1 / 1; /* 🔥 proporción fija en todos los teléfonos */
    height: auto; /* anulamos el height fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* imagen producto */
  .producto img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* 🔥 evita recorte */
  }

  /* contenedor card */
  .card-img{
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* imagen card */
  .card-img img{
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

}
@media (max-width: 600px){
  html, body {
    overflow-x: hidden; 
  }
}
/* FIX IMAGEN PRODUCTO */
.producto img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
}


/* ===== SERVICIOS CORREGIDOS (SIN SUPERPOSICIÓN) ===== */

#servicios-dinamicos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* CARD */
#servicios-dinamicos .card {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  box-shadow: none;

  /* 🔥 CLAVE: eliminar centrados que rompen el grid */
  margin: 0;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* CONTENEDOR IMAGEN */
#servicios-dinamicos .card-img {
  width: 100%;
  height: 240px; /* un poco más equilibrado */
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f4;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMAGEN */
#servicios-dinamicos .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  transition: transform 0.35s ease;
}

/* HOVER */
#servicios-dinamicos .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

#servicios-dinamicos .card:hover img {
  transform: scale(1.05);
}

/* TEXTO */
#servicios-dinamicos .card h3 {
  margin-top: 10px;
  font-size: 18px;
}

#servicios-dinamicos .descripcion {
  font-size: 14px;
  margin-top: 6px;
}

/* RESPONSIVE */
@media (max-width: 600px){
  #servicios-dinamicos {
    grid-template-columns: 1fr;
  }
}
.audio-control {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.audio-control button {
  background: var(--color-principal);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.audio-control button:hover {
  background: #8b5a2b;
}
