
:root{
  --accent: rgb(197, 94, 10);
  --font: "Poppins", sans-serif;
  --font-title: "Playfair Display", serif;
}


*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family: var(--font);
  background-color: #f1e4da;
  color:#222;
}

.icon-user {
    font-size: 2px;
    display: inline-block;
    filter: brightness(0) invert(0.6);   /* gris medio forzado */
    transition: 0.3s ease;
}

.icon-user:hover {
    filter: brightness(0) invert(1);     /* blanco forzado */
}


.site-header{
  position:absolute;
  top:18px;
  left:20px;
  right:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index:1000;
}

.logo img{ height:100px; display:block; }

/* NAV */
#primary_nav_wrap ul{
  list-style:none;
  display:flex;
  gap:18px;
  align-items:center;
  margin:0;
  padding:0;
}

/*  OSCURECER IMÁGENES DEL MENÚ   */
#primary_nav_wrap img,
.slide {
  filter: brightness(0.6); 
  transition: filter 0.3s ease;
}

#primary_nav_wrap img:hover,
.slide:hover {
  filter: brightness(0.8); /* un poco más claras al pasar el mouse */
}

#primary_nav_wrap ul li{ position:relative; }

#primary_nav_wrap ul li a{
  color: var(--accent);
  text-decoration:none;
  font-weight:600;
  font-size:18px;
  padding:8px 6px;
  display:inline-block;
  transition: color .18s ease;
  font-family: var(--font-title);
}

#primary_nav_wrap ul li a::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--accent);
  transform-origin: center;
  transition: transform .22s ease;
}

#primary_nav_wrap ul li:hover > a::after{
  transform: translateX(-50%) scaleX(1);
}

/* Submenús */
#primary_nav_wrap ul ul{
  display:none;
  position:absolute;
  top: calc(100% + 8px);
  right:0;
  background:#fff;
  padding:6px 0;
  box-shadow:0 8px 18px rgba(0,0,0,0.12);
  border-radius:6px;
  min-width:200px;
  z-index:1100;
}

#primary_nav_wrap ul li:hover > ul{ display:block; }

#primary_nav_wrap ul ul li a{
  color:#333;
  padding:9px 16px;
  display:block;
  font-weight:500;
  font-family: var(--font);
}

#primary_nav_wrap ul ul li a:hover{ background:#f6f6f6; }

/* HERO */
.hero{
  width:100%;
  height:100vh;
  position:relative;
  overflow:hidden;
}

.slideshow{
  width:100%;
  height:100%;
  position:relative;
}

.slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0;
  animation: fade 16s infinite;
}

.slide:nth-child(1){ animation-delay: 0s; }
.slide:nth-child(2){ animation-delay: 4s; }
.slide:nth-child(3){ animation-delay: 8s; }
.slide:nth-child(4){ animation-delay: 12s; }

@keyframes fade{
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  25%  { opacity: 1; }
  31%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Texto Hero */
.hero-caption{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  color: var(--accent);
  font-size:48px;
  font-weight:700;
  text-align:center;
  font-family: var(--font-title);
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
  pointer-events:none;
  animation: blink 16s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  25%, 75% { opacity: 0.9; }
  50% { opacity: 1; }
}

.hero-caption span{
  display:block;
  font-size:28px;
  font-weight:400;
  font-family: var(--font);
}

.why-choose{
  text-align:center;
  padding:60px 20px;
  background:#f8f5f2;
}

.why-choose h2{
  font-family: var(--font-title);
  font-size:36px;
  margin-bottom:10px;
  color:#3b2d2d;
  
}

.why-choose .subtitle{
  font-size:16px;
  color:#666;
  margin-bottom:40px;
}


.seccion-comentarios {
    padding: 140px 20px 60px 20px; /* Espacio arriba para el menú */
    background: linear-gradient(135deg, #fffcf7 0%, #ffe6cc 100%);
    margin-top: 0; /* Sin margen superior adicional */
}

/* Título de comentarios */
.titulo-comentarios {
    text-align: center;
    color: #8B4513;
    font-size: 2.5em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    
}

.titulo-comentarios::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #F25C05, #ff8c42);
    border-radius: 2px;
}

/* Grid horizontal - 3 columnas */
.lista-comentarios-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Grid vertical para página de reseñas completas */
.lista-comentarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Cajas de comentarios */
.lista-comentarios-horizontal .caja-comentario {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
}

.lista-comentarios-horizontal .comentario-texto {
    flex-grow: 1;
}

/* Estilos de las cajas de comentarios */
.caja-comentario {
    background: linear-gradient(135deg, #fff 0%, #fef9f3 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #F25C05;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.caja-comentario::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 80px;
    color: rgba(242, 92, 5, 0.1);
    font-family: Georgia, serif;
}

.caja-comentario:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 92, 5, 0.2);
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.comentario-nombre {
    font-weight: bold;
    color: #8B4513;
    font-size: 1.1em;
}

.comentario-estrellas {
    font-size: 1.2em;
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.comentario-texto {
    color: #555;
    margin: 15px 0;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.comentario-fecha {
    color: #999;
    font-size: 0.85em;
    display: block;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* Contenedor del botón "Ver todas las reseñas" */
.contenedor-boton-ver-mas {
    text-align: center;
    margin-top: 40px;
}

/* Botón "Ver todas las reseñas" */
.flecha-comentarios {
    display: inline-block;
    text-align: center;
    padding: 15px 40px;
    background: linear-gradient(135deg, #F25C05 0%, #ff7a2f 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 92, 5, 0.3);
    font-size: 16px;
}

.flecha-comentarios:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 92, 5, 0.4);
}

/* PÁGINA DE RESEÑAS COMPLETA */
.contenedor-resenas {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 140px; 
}

.oculto {
    display: none;
}

.boton-mas {
    padding: 15px 35px;
    background: linear-gradient(135deg, #F25C05 0%, #ff7a2f 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin: 30px auto;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 92, 5, 0.3);
}

.boton-mas:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 92, 5, 0.4);
}

.form-resena {
    background: white;
    padding: 35px;
    max-width: 700px;
    margin: 30px auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-resena h3 {
    color: #8B4513;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.form-resena input,
.form-resena textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0d5cc;
    margin-bottom: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-resena input:focus,
.form-resena textarea:focus {
    outline: none;
    border-color: #F25C05;
    box-shadow: 0 0 0 3px rgba(242, 92, 5, 0.1);
}

.form-resena textarea {
    min-height: 120px;
    resize: vertical;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    flex-direction: row-reverse;
}

.star-rating span {
    font-size: 35px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ddd;
}

.star-rating span:hover,
.star-rating span.selected {
    color: #FFD700;
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
}

.botones-form {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.botones-form button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

#btnPublicar {
    background: linear-gradient(135deg, #F25C05 0%, #ff7a2f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(242, 92, 5, 0.3);
}

#btnPublicar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 92, 5, 0.4);
}

#btnCancelar {
    background: #e0e0e0;
    color: #666;
}

#btnCancelar:hover {
    background: #d0d0d0;
}

.mensaje-vacio {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2em;
}

.mensaje-vacio::before {
    content: '📝';
    display: block;
    font-size: 4em;
    margin-bottom: 20px;
}

/* Animación de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* RESPONSIVE */


/* Tablets  */
@media (max-width: 900px) {
    .lista-comentarios-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .seccion-comentarios {
        padding: 120px 15px 50px 15px;
    }
}

/* Móviles - 1 columna */
@media (max-width: 600px) {
    .lista-comentarios-horizontal {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .lista-comentarios {
        grid-template-columns: 1fr;
    }
    
    .seccion-comentarios {
        padding: 100px 10px 40px 10px;
    }
    
    .contenedor-resenas {
        padding-top: 100px;
    }
    
    .titulo-comentarios {
        font-size: 1.8em;
    }

    .form-resena {
        padding: 25px;
    }

    .star-rating span {
        font-size: 28px;
    }
    
    .lista-comentarios-horizontal .caja-comentario {
        min-height: auto;
    }
}