/* ==================== FUENTES PERSONALIZADAS ==================== */
@font-face {
    font-family: Titulo;
    src: url(../Fuentes/CHICKEN\ Pie\ Height.ttf);
}

@font-face {
    font-family: Subtitulo;
    src: url(../Fuentes/KGPerfectPenmanship.ttf);
}

@font-face {
    font-family: Texto;
    src: url(../Fuentes/Random\ Wednesday.ttf);
}

@font-face {
    font-family: Principal;
    src: url(../Fuentes/Hey\ Comic.ttf);
}

/* ==================== COLORES ==================== */
:root {
    --principal: rgba(146, 99, 153);
    --crema: rgb(255, 250, 228);
    --lavanda: rgba(175, 142, 159);
    --morado-oscuro: rgba(117, 48, 134);
    --rojo: rgba(127, 57, 72);
    --hover: #f0b7e8;
    --blanco: rgb(243, 235, 237);
}

/* ==================== GLOBALES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    width: 100%;
    height: 100vh;
    margin-top: 75px;
    font-family: Principal;
    background-color: var(--blanco);
}

img {
    max-width: 100%;
    display: block;
}

/* ===================================================== */
/* ============ SECCIÓN HEADER Y SIDEBAR =============== */
/* ===================================================== */

header {
    z-index: 200;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 2rem 0.45rem 1.27rem;
    position: fixed;
    background-color: var(--principal);
    top: 0;
    left: 0;
    box-shadow: 1px 0px 10px #0f0f0f;
}

.name a {
  color: white;
  text-decoration: none; /* Opcional: quita el subrayado */
}

.name a:hover,
.name a:visited,
.name a:active {
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand a .logo,
.brand .name {
  transition: transform 0.3s ease;
  transform-origin: left center;
}

.brand a .logo:hover,
.brand .name:hover {
  transform: scale(1.1);
}

.izq {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.4rem;
    height: 18%;
}

.menu-container {
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.menu {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-container img {
    filter: brightness(0) invert(1);
}

.menu div {
    width: 100%;
    height: 0.20rem;
    background-color: black;
}

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
}

.brand .logo {
    width: 3rem;
}

.brand .name {
    font-family: Principal;
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 2px 3px 5px rgb(70, 21, 82);
}

/* ===== SUBMENÚ HEADER: INFOGRAFÍAS ===== */
.header-infografias {
  position: relative;
  display: inline-block;
}

.header-infografias > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--morado-oscuro);
}

.header-infografias .submenu-infografias {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--lavanda-claro);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  z-index: 1000;
  width: max-content;
}

.header-infografias.open .submenu-infografias {
  opacity: 1;
  max-height: 500px;
}

/* Ítems del submenú */
.submenu-infografias li {
  list-style: none;
}

.submenu-infografias li a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--morado-oscuro);
  text-decoration: none;
  font-family: var(--fuente-texto);
}

.submenu-infografias li a:hover {
  background-color: var(--lavanda-oscuro);
  color: white;
}

.dere {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
}

.dere a {
    color: #fff;
     text-shadow: 2px 3px 5px rgb(70, 21, 82);
    font-size: 1.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0.5rem;
    transition: background-color 0.2 ease;
}

.dere a:hover {
    background-color: var(--morado-oscuro);
}

.dere img {
    width: 1.8rem;
    margin: 0.5rem;
     box-shadow: 2px 3px 5px rgb(70, 21, 82);
}

/* -------- SIDEBAR -------- */
.sidebar {
    box-shadow: 1px 0px 10px #302e2e;
    font-family: Principal;
    margin-top: 3.5rem;
    width: 4rem;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 1.1rem 0;
    overflow-y: auto;
    background-color: var(--crema);
}

.sidebar.menu-toggle {
    width: 18.75rem;
}

.sidebar a img.icono-tema {
    width: 1.8rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    padding: 0.9rem 0.7rem;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    color: #000;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.menu-toggle a {
    white-space: normal;
    line-height: 1.2;
    word-break: break-word;
}

.sidebar a:hover {
    background-color: var(--hover);
}

.sidebar a.selected {
    color: var(--morado-oscuro);
    background-color: blue;
}

.sidebar a.search {
    padding: 1rem 0.7rem;
    border-bottom: 1px solid var(--morado-oscuro);
    margin-bottom: 0.2rem;
}

.sidebar img {
    width: 1.6rem;
}


.has-submenu > a::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: auto;
  color: var(--morado-oscuro);
}

.submenu {
  display: none;
  list-style: none;
  padding-left: 2.5rem; /* espacio para la línea + sombra */
  position: relative;
}

.has-submenu.open > .submenu::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.8rem;
  width: 4px;
  background: var(--morado-oscuro);
  border-radius: 2px;
  box-shadow: 8px 0 12px rgba(117, 48, 134, 0.514); /* sombra hacia la derecha */
}

.has-submenu.open .submenu {
  display: block;
}

/* Animación del submenú */
.submenu {
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  list-style: none;
  padding-left: 1.5rem;
  border-left: 3px solid var(--morado-oscuro); /* Línea decorativa */
}

.has-submenu.open .submenu {
  max-height: 500px; /* Ajusta si tienes más elementos */
  opacity: 1;
}

/* Líneas separadoras */
hr {
  border: none;
  height: 1px;
  background-color: #999;
  margin: 1rem 1rem;
}






* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    margin-top: 75px;
    font-family: Principal;
    background-color: var(--blanco);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2, h3 {
    font-family: Titulo;
    font-size: 2.5rem;
    color: var(--morado-oscuro);
    text-align: center;
    margin-bottom: 15px;
}

p {
    font-family: Texto;
    font-size: 1.5rem;
    color: var(--rojo);
}

.header {
    top: 0;
    background-color: #fff;
    box-shadow: 1px 0px 10px rgba(0,0,0,0.1);
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    width: 100%;
    padding: 5px 5%;
    z-index: 500;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links a {
    font-family: Subtitulo;
    font-weight: bold;
    color: #000;
    padding: 10px 15px;
    display: block;
    font-size: 18px;
}

.nav-links a:hover {
    color: var(--hover);
}

.footer {
    font-size: 20px;
    font-family: Principal;
    color: #fff;
    width: 100%;
    background-color: var(--rojo);
    padding: 100px 0;
    z-index: 15;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer .link {
    flex-basis: 48%;
    margin-bottom: 20px;
}

.footer .footer-logo {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    display: block;
    font-family: Subtitulo;
}

.footer .link ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.footer .link ul li {
    margin: 0 15px;
    font-size: 16px;
}

.footer .link a {
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
    padding: 5px 0;
}

.footer .link a:hover {
    color: var(--hover);
}

.information-content {
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.information-1, .information-2 {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    margin: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #fff;
}

.information-c1 {
    flex: 1;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.information-a1, .information-b1 {
    flex: 1;
    min-height: 250px;
}

.information-a1 img, .information-b1 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.btn-1, .btn-2 {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid var(--principal);
    color: var(--principal);
    text-transform: uppercase;
    border-radius: 5px;
    font-family: Subtitulo;
    transition: 0.3s ease;
}

.btn-1:hover, .btn-2:hover {
    background-color: var(--hover);
    color: rgb(0, 0, 0);
}

.our {
    margin-top: -30px;
    height: 25%;
    padding: 80px 0;
    background: linear-gradient(rgba(127,57,72), rgb(97, 43, 56));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
}

.our h2 {
    font-size: 45px;
    color: #fff;
    font-family: Titulo;
    text-align: center;
}

.ofert-content {
    
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    margin-bottom: 50px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.ofert-1 {
    flex-basis: 25%;
    flex-grow: 1;
    min-width: 280px;
    margin: 10px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.ofert-txt {
    padding: 25px;
    text-align: center;
    background-color: #fff;
}

.ofert-img {
    height: 230px;
    overflow: hidden;
}

.ofert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg {
    background: linear-gradient(rgba(127,57,72), rgb(97, 43, 56));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 200px;
    margin-top: -10px;
}

.food {
    padding: 50px 0;
    text-align: center;
}

.food h2 {
    font-size: 50px;
    font-family: Subtitulo;
    color: var(--morado-oscuro);
}

.food span {
    font-size: 20px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 45px;
    color: var(--morado-oscuro);
    font-family: Texto;
}

.food-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.food-content .left, .food-content .rigth {
    flex-basis: 45%;
    min-width: 300px;
    text-align: left;
}

.food-1 {
    margin-bottom: 20px;
}

.food-1 h3 {
    font-family: Subtitulo;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--morado-oscuro);
    text-align: left;
}

.food-txt {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.food-txt p {
    font-size: 17px;
    color: var(--rojo);
    margin-right: 15px;
    flex-grow: 1;
    font-family: Texto;
}

.detalle {
    font-size: 20px;
    font-weight: 700;
    color: var(--principal);
    white-space: nowrap;
}


@media (max-width: 991px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 10px 5%;
    }

    .information-content,
    .ofert-content,
    .food-content {
        flex-direction: column;
        align-items: center;
    }

    .information-1, .information-2,
    .ofert-1,
    .food-content .left, .food-content .rigth {
        flex-basis: 100%;
        margin: 15px 0;
        width: 90%;
    }

    .our, .bg {
        padding: 100px 0;
        height: auto;
    }

    .food h2 {
        font-size: 40px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer .link ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .footer .link ul li {
        margin: 0;
    }
}
