@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Bebas+Neue&family=Fjalla+One&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&family=Oswald:wght@200..700&family=Spicy+Rice&display=swap');

body{
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
} 


.header-centro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #afcf85;
    height: 120px;
    padding: 0 20px;
}

/* Menú izquierdo en computadora */
.nav-left {
    position: absolute;
    right: calc(50% + 150px);
    display: flex;
    gap: 1.5rem;
}

/* Menú derecho en computadora */
.nav-right {
    position: absolute;
    left: calc(50% + 150px);
    display: flex;
    gap: 1.5rem;
}

/* Enlaces */
.nav-left a,
.nav-right a,
.menu-movil a {
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #5A2A3A;
    font-weight: 600;
}

.nav-left a:hover,
.nav-right a:hover,
.menu-movil a:hover {
    color: #03270b;
}

/* Logo centrado */
.logo-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

img.logo-header {
    width: auto;
    height: 100px;
    object-fit: contain;
    display: block;
}

.estrella {
    font-size: 22px;
    color: #5A2A3A;
    opacity: 0.9;
}

/* El menú móvil no aparece en computadora */
.menu-movil {
    display: none;
}


/* ------------------------------ */
/* 📱 MODO CELULAR */
/* ------------------------------ */

@media (max-width: 768px) {

    .header-centro {
        height: auto;
        padding: 10px 4px 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Logo arriba */
    .logo-wrapper {
        position: static;
        transform: none;
        order: 1;
        gap: 8px;
    }

    img.logo-header {
        height: 65px;
        width: auto;
    }

    .estrella {
        font-size: 16px;
    }

    /* Ocultamos los menús de computadora */
    .nav-left,
    .nav-right {
        display: none;
    }

    /* Los cuatro enlaces en una sola línea */
    .menu-movil {
        order: 2;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: clamp(8px, 3vw, 16px);
        width: 100%;
        white-space: nowrap;
    }

    .menu-movil a {
        font-size: clamp(23px, 3.6vw, 15px);
        white-space: nowrap;
        font-weight: 600;
    }

}


.banner-move {
  width: 100%;
  overflow: hidden;
  background-color: #588b6d; 
  padding: 0.2rem 0;
}

.banner-move h6 {
  display: inline-block;
  white-space: nowrap;
  color: rgb(245, 235, 235);
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  line-height: 0.85rem;
  margin: 0;
  width: 100%;
  animation: moveText 27s linear infinite;
}

@keyframes moveText {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

@media (max-width: 768px) {

  /* Header */
  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .logo {
    width: 180px;
  }

  .naver ul {
    flex-direction: column;
    
  }

  /* Banner */
  .banner-move h6 {
    font-size: 0.75rem;
  }
}

body {
    background-image:
        linear-gradient(rgba(255, 249, 247, 0.65), rgba(255, 249, 247, 0.65)),
        url("fondoblog.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    color: #4d3b3d;
    font-family: Arial, sans-serif;
}

/* --------------------
   GRID DE ENTRADAS
-------------------- */

.blog-container {
    width: min(1100px, 90%);
    margin: 0 auto 60px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}


/* --------------------
   CARD
-------------------- */

.post-card {
    background: #fff;

    border: 1px solid #eadbdd;
    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 4px 12px rgba(100, 70, 80, 0.08);

    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}


/* efecto cuando pasas el mouse */

.post-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 8px 20px rgba(100, 70, 80, 0.15);
}


/* --------------------
   FOTO
-------------------- */

.post-card img {
    width: 100%;
    height: 210px;

    object-fit: cover;

    display: block;
}


/* --------------------
   CONTENIDO
-------------------- */

.post-content {
    padding: 22px;
}

.post-date {
    font-size: 12px;
    color: #b8798c;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.post-content h2 {
    font-size: 21px;

    margin: 9px 0 12px;

    color: #49363a;

    line-height: 1.25;
}

.post-content p {
    font-size: 14px;

    line-height: 1.6;

    color: #765f64;

    margin-bottom: 18px;
}


/* --------------------
   BOTÓN
-------------------- */

.read-more {
    color: #b85c78;

    text-decoration: none;

    font-size: 14px;

    font-weight: bold;

    transition: color 0.2s ease;
}

.read-more:hover {
    color: #7b4055;
}


/* --------------------
   TABLET
-------------------- */

@media (max-width: 850px) {

    .blog-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

}


/* --------------------
   TELÉFONO
-------------------- */

@media (max-width: 550px) {

    .blog-header {
        padding: 40px 20px 30px;
    }

    .blog-header h1 {
        font-size: 32px;
    }

    .blog-container {
        grid-template-columns: 1fr;

        width: 88%;

        gap: 20px;
    }

    .post-card img {
        height: 200px;
    }

}

.footer-section {
  background-color: #06351b; /* vino del header */
  padding: 2rem 0;
  width: 100%;
}

.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  color: #f5e4e9; /* rosita crema */
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.llavero img {
    width: 180px;
}

.llavero:hover img {
    animation: vueltita 1.2s ease-in-out infinite;
}

@keyframes vueltita {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}