@media (min-width: 769px) {
        html {
            zoom: 0.9;
        }
    }

        :root {
            --medium-blue: #3a74a6;
            --light-green: #74b42c;
            --medium-green: #7cbc34;
            --dark-green: #307c68;;
            --medium-gray: #ffffff;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: var(--light-gray);
            color: var(--dark-gray);
            line-height: 1.6;
        }
        /* Para el header - OVERRIDE específico */
.capas-header,
.capas-header * {
    line-height: normal !important;
}

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Sección Hero */

        /* Sección de Servicios */

        .section-title {
            text-align: center;
            position: relative;
        }

        .section-title h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

        .section-title p {
            font-size: 1.1rem;
            color: var(--dark-gray);
            max-width: 700px;
            margin: 0 auto;
        }

        .section-title::after {
            content: "";
            display: block;
            width: 80px;
            height: 4px;
            background-color: var(--secondary-blue);
            margin: 20px auto 0;
            border-radius: 2px;
        }

  :root {
    /* Paleta de colores para cultura del agua */
    --primary-blue: #044c8c;
    --secondary-blue: #04a4dc;
    --light-blue: #7ad7f0;
    --dark-blue: #044090;
    --accent-blue: #06b6f3;
    --teal: #00a6b9;
    --light-teal: #84d7e1;
    --green: #74b42c;
  }

  /* Estilos base para la sección Hero de Cultura del Agua */
  .water-culture-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark-blue), var(--teal));
    color: var(--white);
    padding: 70px 0 120px; /* Reducido el padding superior para que el contenido esté más arriba */
    overflow: hidden;
  }

  /* Animación de gotas de agua en el fondo */
  .water-drops-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }

  .drop {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    opacity: 0;
    animation: fall 15s infinite;
  }

  .drop-1 {
    left: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
  }

  .drop-2 {
    left: 30%;
    width: 60px;
    height: 60px;
    animation-delay: 3s;
  }

  .drop-3 {
    left: 70%;
    width: 100px;
    height: 100px;
    animation-delay: 6s;
  }

  .drop-4 {
    left: 85%;
    width: 50px;
    height: 50px;
    animation-delay: 9s;
  }

  .drop-5 {
    left: 50%;
    width: 70px;
    height: 70px;
    animation-delay: 12s;
  }

  @keyframes fall {
    0% {
      top: -100px;
      opacity: 0.2;
      transform: scale(0.8) rotate(0deg);
    }

    20% {
      opacity: 0.8;
      transform: scale(1) rotate(45deg);
    }

    70% {
      opacity: 0.4;
    }

    100% {
      top: 120%;
      opacity: 0;
      transform: scale(0.5) rotate(90deg);
    }
  }

  /* Estilos para el botón de regresar */
.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 8px 15px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-back:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn-back i {
  font-size: 1.1rem;
}

/* Estilos responsivos */

  /* Contenido principal */
  .water-culture-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: flex-start; /* Cambiado a flex-start para que el texto esté más arriba */
    justify-content: space-between;
    position: relative;
    z-index: 2;
    padding-top: 20px; /* Agregado padding-top para que el contenido esté más arriba */
  }

  /* Sección de texto */
  .water-culture-text {
    width: 55%;
    padding-right: 40px;
    margin-top: 0; /* Eliminado cualquier margen superior */
  }

  .title-badge {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 25px;
    position: relative;
  }

  .title-badge span {
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--light-teal);
  }

  .title-badge h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(to right, var(--white), var(--light-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .water-slogan {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 30px; /* Reducido el margen inferior */
    color: var(--white);
    font-style: italic;
    font-weight: 300;
    position: relative;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    max-width: 600px;
  }

  .water-slogan::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: var(--green);
    margin-top: 20px;
    border-radius: 2px;
  }

  /* Sección visual */
  .water-culture-visual {
    width: 45%;
    position: relative;
    margin-top: 20px; /* Ajustado para mejor alineación con el texto */
  }

  .image-container {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
  }

  .image-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    animation: ripple 4s infinite;
  }

  @keyframes ripple {
    0% {
      width: 100%;
      height: 100%;
      opacity: 0.3;
    }
    100% {
      width: 120%;
      height: 120%;
      opacity: 0;
    }
  }

  .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    animation: float 6s ease-in-out infinite;
  }

  .water-badge {
    position: absolute;
    bottom: 10px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: bounce 5s ease-in-out infinite;
    overflow: hidden;
  }

  .badge-wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: var(--light-teal);
    opacity: 0.5;
    border-radius: 0 0 60px 60px;
    animation: wave 4s ease-in-out infinite;
  }

  @keyframes wave {
    0%, 100% {
      height: 30%;
    }
    50% {
      height: 40%;
    }
  }

  .water-badge span {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .water-badge span:first-child {
    font-size: 1.4rem;
  }

  .water-badge span:last-child {
    font-size: 1.2rem;
  }

  /* Separador con ondas */
  .wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
  }

  .wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
        margin-bottom: -1px; /* ✅ Agrega esto para eliminar el gap */

  }

  /* Estilos responsivos */
  @media (max-width: 1200px) {
    .image-container {
      width: 400px;
      height: 400px;
    }
  }

  @media (max-width: 992px) {
    .water-culture-hero {
      padding: 60px 0 100px; /* Ajustado para pantallas más pequeñas */
    }

    .water-culture-content {
      flex-direction: column;
      text-align: center;
    }

    .water-culture-text {
      width: 100%;
      padding-right: 0;
      margin-bottom: 40px; /* Reducido el margen inferior */
    }

    .water-slogan::after {
      margin: 20px auto 0;
    }

    .water-culture-visual {
      width: 100%;
      margin-top: 0;
    }

    .image-container {
      width: 350px;
      height: 350px;
    }

    .water-badge {
      right: 10px;
    }
  }

  @media (max-width: 768px) {
    .water-culture-hero {
      padding: 50px 0 90px; /* Ajustado para tablets */
    }

    .title-badge h1 {
      font-size: 4rem;
    }

    .title-badge span {
      font-size: 1.4rem;
    }

    .water-slogan {
      font-size: 1.3rem;
    }

    .image-container {
      width: 300px;
      height: 300px;
    }
  }

  @media (max-width: 576px) {
    .water-culture-hero {
      padding: 40px 0 80px; /* Ajustado para móviles */
    }

    .title-badge h1 {
      font-size: 3.2rem;
    }

    .title-badge span {
      font-size: 1.2rem;
    }

    .water-slogan {
      font-size: 1.1rem;
    }

    .image-container {
      width: 260px;
      height: 260px;
    }

    .water-badge {
      width: 100px;
      height: 100px;
      right: 0;
    }

    .water-badge span:first-child {
      font-size: 1.2rem;
    }

    .water-badge span:last-child {
      font-size: 1rem;
    }

    .back-button {
      top: 15px;
      left: 15px;
    }

    .btn-back {
      padding: 8px 15px;
      font-size: 0.9rem;
    }
  }

  @media (max-width: 400px) {
    .title-badge h1 {
      font-size: 2.5rem;
    }

    .title-badge span {
      font-size: 1rem;
    }

    .water-slogan {
      font-size: 0.95rem;
    }

    .image-container {
      width: 220px;
      height: 220px;
    }

    .water-badge {
      width: 80px;
      height: 80px;
    }

    .water-badge span:first-child {
      font-size: 1rem;
    }

    .water-badge span:last-child {
      font-size: 0.8rem;
    }
  }

  /* Para móviles */
@media (max-width: 576px) {
  .game-stats {
    flex-direction: column;   /* Apila los items */      /* Centra horizontalmente */                /* Espacio entre ellos */
  }

  .game-stats .stat-item {
    width: auto;              /* Se ajusta al contenido */
    text-align: center;       /* Texto centrado */
    padding: 6px 12px;        /* Más compacto */
    font-size: 0.9rem;        /* Un poco más pequeño en móviles */
  }
}
/* ESTILOS PARA LA SECCIÓN DEL JUEGO DE MEMORIA */

/* Sección del Juego de Memoria con fondo azul */
.water-memory-section {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 50%, #1E90FF 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.water-memory-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="3" fill="%23ffffff" opacity="0.1"/><circle cx="20" cy="20" r="2" fill="%23ffffff" opacity="0.15"/><circle cx="80" cy="30" r="1.5" fill="%23ffffff" opacity="0.2"/></svg>');
    background-size: 150px;
    opacity: 0.3;
    animation: float-bg 20s linear infinite;
}

@keyframes float-bg {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-150px) translateY(-150px); }
}

.water-memory-section .section-subtitle {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.water-memory-section .section-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.water-memory-section .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Contenedor del juego (cuadro blanco) */
.game-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-title {
    color: #0066CC;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-subtitle {
    color: #2980B9;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 25px;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    min-height: 120px;
}

.game-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
}

.stat-item {
    font-weight: bold;
}

.level-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px;
}

.level-btn, .restart-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.level-btn {
    background: linear-gradient(135deg, #27AE60, #2ECC71);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.level-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(39, 174, 96, 0.4);
}

.level-btn.active {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.restart-btn {
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(243, 156, 18, 0.4);
}

.game-board {
    display: grid;
    gap: 15px;
    justify-content: center;
    margin-bottom: 0;
    perspective: 1000px;
}

.game-board.easy {
    grid-template-columns: repeat(4, 1fr);
    max-width: 400px;
    margin: 0 auto;
}

.game-board.medium {
    grid-template-columns: repeat(6, 1fr);
    max-width: 700px;
    margin: 0 auto;
}

.game-board.hard {
    grid-template-columns: repeat(8, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.memory-card {
    width: 80px;
    height: 80px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.memory-card.matched {
    transform: rotateY(180deg) scale(1.1);
    pointer-events: none;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid transparent;
}

.card-front {
    color: white;
    font-size: 2rem;
    transform: rotateY(180deg);
}

.card-back {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    font-size: 1.5rem;
}

.card-face.matched {
    border-color: #fff;
    animation: celebration 0.6s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes celebration {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.game-message {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 20px;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.game-message.success {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    animation: bounce 0.6s ease;
}

.game-message.info {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.water-tips {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
}

.water-tips h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Responsive para el juego de memoria */
@media (max-width: 992px) {
    .water-memory-section {
        padding: 60px 0;
    }

    .game-container {
        padding: 20px 15px;
        margin: 5px;
        border-radius: 15px;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .game-subtitle {
        font-size: 1rem;
    }

    .game-board.medium {
        grid-template-columns: repeat(4, 1fr);
        max-width: 400px;
    }

    .game-board.hard {
        grid-template-columns: repeat(4, 1fr);
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .water-memory-section {
        padding: 50px 0;
    }

    .game-container {
        padding: 15px;
        margin: 0;
        border-radius: 15px;
        max-width: 100%;
    }

    .game-header {
        margin-bottom: 20px;
    }

    .game-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .game-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .game-controls {
        padding: 15px;
        gap: 15px;
        min-height: 100px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .game-stats {
        gap: 8px;
        justify-content: center;
    }

    .stat-item {
        font-size: 0.85rem;
    }

    .level-selector {
        gap: 6px;
        width: 100%;
        max-width: 350px;
    }

    .level-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
    }

    .restart-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .memory-card {
        width: 65px;
        height: 65px;
    }

    .card-front {
        font-size: 1.4rem;
    }

    .card-back {
        font-size: 1.2rem;
    }

    .game-board {
        gap: 8px;
        padding: 0 5px;
    }

    .game-board.medium {
        grid-template-columns: repeat(4, 1fr);
        max-width: 320px;
    }

    .game-board.hard {
        grid-template-columns: repeat(4, 1fr);
        max-width: 320px;
    }

    .game-message {
        font-size: 1.2rem;
        padding: 12px;
        margin: 15px 0;
    }

    .water-tips {
        padding: 15px;
        margin-top: 15px;
        border-radius: 12px;
    }

    .water-tips h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .water-tips p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .water-memory-section {
        padding: 40px 0;
    }

    .game-container {
        padding: 12px;
        border-radius: 12px;
    }

    .game-header {
        margin-bottom: 15px;
    }

    .game-title {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .game-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .game-controls {
        padding: 12px;
        gap: 12px;
        min-height: 90px;
        margin-bottom: 15px;
    }

    .game-stats {
        gap: 6px;
        flex-wrap: wrap;
    }

    .stat-item {
        font-size: 0.75rem;
        flex: 1;
        max-width: 120px;
    }

    .level-selector {
        gap: 4px;
        width: 100%;
        max-width: 300px;
    }

    .level-btn {
        font-size: 0.7rem;
        padding: 6px 8px;
        border-radius: 15px;
    }

    .restart-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
        border-radius: 20px;
    }

    .memory-card {
        width: 55px;
        height: 55px;
    }

    .card-front {
        font-size: 1.2rem;
    }

    .card-back {
        font-size: 1rem;
    }

    .game-board {
        gap: 6px;
        padding: 0;
    }

    .game-board.easy {
        max-width: 260px;
    }

    .game-board.medium {
        grid-template-columns: repeat(4, 1fr);
        max-width: 260px;
    }

    .game-board.hard {
        grid-template-columns: repeat(4, 1fr);
        max-width: 260px;
    }

    .game-message {
        font-size: 1rem;
        padding: 10px;
        margin: 12px 0;
        border-radius: 10px;
    }

    .water-tips {
        padding: 12px;
        margin-top: 12px;
        border-radius: 10px;
    }

    .water-tips h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }

    .water-tips p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 400px) {
    .game-container {
        padding: 10px;
    }

    .game-title {
        font-size: 1.2rem;
    }

    .game-subtitle {
        font-size: 0.8rem;
    }

    .game-controls {
        padding: 10px;
        gap: 10px;
        min-height: 80px;
    }

    .game-stats {
        gap: 4px;
    }

    .stat-item {
        font-size: 0.7rem;
    }

    .level-selector {
        flex-direction: column;
        gap: 3px;
        width: 100%;
        max-width: 250px;
    }

    .level-btn {
        font-size: 0.65rem;
        padding: 5px 6px;
        width: 100%;
    }

    .restart-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .memory-card {
        width: 45px;
        height: 45px;
    }

    .card-front {
        font-size: 1rem;
    }

    .card-back {
        font-size: 0.8rem;
    }

    .game-board {
        gap: 4px;
    }

    .game-board.easy {
        max-width: 220px;
    }

    .game-board.medium {
        max-width: 220px;
    }

    .game-board.hard {
        max-width: 220px;
    }

    .water-tips h3 {
        font-size: 0.9rem;
    }

    .water-tips p {
        font-size: 0.8rem;
    }
}

/* Mejoras táctiles para móviles */
@media (hover: none) and (pointer: coarse) {
    .memory-card {
        cursor: default;
    }

    .memory-card:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }

    .level-btn:active,
    .restart-btn:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Orientación horizontal en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .game-container {
        padding: 10px;
    }

    .game-header {
        margin-bottom: 10px;
    }

    .game-title {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .game-subtitle {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .game-controls {
        padding: 10px;
        gap: 8px;
        min-height: 70px;
        margin-bottom: 10px;
    }

    .game-stats {
        gap: 6px;
    }

    .stat-item {
        font-size: 0.7rem;
    }

    .level-selector {
        gap: 4px;
    }

    .level-btn {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .restart-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .memory-card {
        width: 50px;
        height: 50px;
    }

    .card-front {
        font-size: 1.1rem;
    }

    .game-board.medium {
        grid-template-columns: repeat(6, 1fr);
        max-width: 380px;
    }

    .game-board.hard {
        grid-template-columns: repeat(8, 1fr);
        max-width: 480px;
    }

    .water-tips {
        padding: 10px;
        margin-top: 10px;
    }

    .water-tips h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .water-tips p {
        font-size: 0.75rem;
    }
}

/* Estilos para el botón sutil de calculadora */
.btn-calculator-subtle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  border-radius: 25px;
  color: #3498db;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-calculator-subtle:hover {
  background: rgba(52, 152, 219, 0.15);
  border-color: rgba(52, 152, 219, 0.5);
  color: #2980b9;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.btn-calculator-subtle i {
  font-size: 16px;
}

.btn-calculator-subtle:active {
  transform: translateY(0);
}

/* Responsive para el botón */
@media (max-width: 768px) {
  .btn-calculator-subtle {
    font-size: 13px;
    padding: 8px 16px;
  }

  .btn-calculator-subtle i {
    font-size: 14px;
  }
}

      .btn-water-back {
        display: inline-flex;
        align-items: center;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        color: var(--white);
        padding: 12px 28px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(4, 76, 140, 0.25);
        border: none;
        cursor: pointer;
        margin-top: 10px;
        z-index: 1;
      }

      .btn-water-back::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
      }

      .btn-water-back:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(4, 76, 140, 0.35);
      }

      .btn-water-back:hover::before {
        opacity: 1;
      }

      .btn-back-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 12px;
        position: relative;
        z-index: 1;
        transition: transform 0.3s ease;
      }

      .btn-water-back:hover .btn-back-icon {
        transform: translateX(-3px);
      }

      .btn-back-icon i {
        font-size: 1.1rem;
        color: var(--white);
      }

      .btn-water-back span {
        position: relative;
        z-index: 1;
      }

      /* Efectos de ondas al hacer clic */
      .btn-water-back::after {
        content: '';
        position: absolute;
        width: 30px;
        height: 30px;
        background-color: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0.4s, opacity 0.4s;
        opacity: 0;
        z-index: 0;
      }

      .btn-water-back:active::after {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
        transition: transform 0.4s, opacity 0.4s;
      }

      /* Estilos responsivos */
      @media (max-width: 768px) {
        .btn-water-back {
          padding: 10px 22px;
          font-size: 0.95rem;
        }
      }

      @media (max-width: 576px) {
        .btn-water-back {
          padding: 8px 18px;
          font-size: 0.9rem;
        }

        .btn-back-icon i {
          font-size: 1rem;
        }
      }

  :root {
    /* Paleta de colores principal */
    --primary-color: #04a4dc;
    --primary-dark: #044c8c;
    --primary-light: #7ad7f0;
    --secondary-color: #74b42c;
    --secondary-dark: #307c68;
    --secondary-light: #9bd86c;
    --accent-color: #00a6b9;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #000000;

    /* Colores para tarjetas */
    --card-blue: linear-gradient(145deg, #04a4dc, #0486b4);
    --card-green: linear-gradient(145deg, #74b42c, #5a8c22);
    --card-teal: linear-gradient(145deg, #00a6b9, #007a88);
    --card-red: linear-gradient(145deg, #e74c3c, #c0392b);
    --card-purple: linear-gradient(145deg, #8e44ad, #6c3483);
    --card-orange: linear-gradient(145deg, #e67e22, #d35400);

    /* Sombras */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

    /* Transiciones */
    --transition: all 0.3s ease-in-out;
  }

  /* Estilos generales */
  .water-culture-main {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    overflow-x: hidden;
  }

  .text-primary {
    color: var(--primary-color) !important;
  }

  .text-primary-light {
    color: var(--primary-light) !important;
  }

  section {
    padding: 3rem 0;
    position: relative;
  }

  .section-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
  }

  .section-subtitle {
    display: inline-block;
    background-color: rgba(4, 164, 220, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .lead {
    font-size: 1.15rem;
    color: var(--gray);
  }

  /* Separadores de onda */
  .wave-separator,
  .wave-separator-inverse {
    position: relative;
    height: 70px;
    width: 100%;
    overflow: hidden;
    margin-top: -1px;
    z-index: 1;
  }

  .wave-separator svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }

  .wave-separator-inverse {
    position: relative;
    height: 70px;
    width: 100%;
    overflow: hidden;
    margin-bottom: -1px;
    z-index: 1;
  }

  .wave-separator-inverse svg {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    transform: rotate(180deg);
  }

  /* Sección de introducción */
  .intro-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
  }

  .badge-blue {
    display: inline-block;
    background-color: rgba(4, 164, 220, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .intro-image {
    position: relative;
  }

  .water-drop-shape {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(-5deg);
  }

  .water-drop-shape img {
    width: 100%;
    height: auto;
    transform: scale(1.05);
    transition: var(--transition);
  }

  .water-drop-shape:hover img {
    transform: scale(1.1);
  }

  .floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    font-size: 1.5rem;
    animation: float 6s infinite ease-in-out;
  }

  .floating-icon.icon-1 {
    top: 10%;
    left: 0;
    color: var(--primary-color);
    animation-delay: 0s;
  }

  .floating-icon.icon-2 {
    top: 20%;
    right: 5%;
    color: var(--accent-color);
    animation-delay: 1s;
  }

  .floating-icon.icon-3 {
    bottom: 15%;
    left: 10%;
    color: var(--secondary-color);
    animation-delay: 2s;
  }

  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-15px);
    }
  }

  .water-stats {
    margin-top: 1.5rem;
    gap: 1.25rem;
  }

  .stat-item {
    background: linear-gradient(145deg, var(--primary-light), var(--primary-color));
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
  }

  .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .stat-text {
    font-size: 0.85rem;
    opacity: 0.9;
  }

  /* Sección de Datos sobre el Agua */
  .water-facts-section {
    background-color: #f0f9fe; /* Azul muy claro */
    position: relative;
  }

  .fact-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 15px;
    height: 100%;
    transition: var(--transition);
    overflow: hidden;
    color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1;
  }

  .fact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
  }

  .fact-card.card-blue {
    background: var(--card-blue);
  }

  .fact-card.card-green {
    background: var(--card-green);
  }

  .fact-card.card-teal {
    background: var(--card-teal);
  }

  .fact-card.card-red {
    background: var(--card-red);
  }

  .fact-card.card-purple {
    background: var(--card-purple);
  }

  .fact-card.card-orange {
    background: var(--card-orange);
  }

  .fact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .fact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .fact-card p {
    font-size: 0.95rem;
    opacity: 0.9;
  }

  .fact-shape-1,
  .fact-shape-2 {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: -1;
  }

  .fact-shape-1 {
    width: 150px;
    height: 150px;
    top: -75px;
    right: -75px;
  }

  .fact-shape-2 {
    width: 100px;
    height: 100px;
    bottom: -50px;
    left: -50px;
  }

  /* Sección de Consejos para Ahorrar Agua */
  .water-saving-section {
    background-color: var(--white);
    position: relative;
  }

  .tips-tabs {
    position: relative;
  }

  .nav-pills {
    border-radius: 100px;
    background-color: var(--light-gray);
    padding: 0.5rem;
    display: inline-flex;
    margin-bottom: 2rem;
  }

  .nav-pills .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    color: var(--gray);
    transition: var(--transition);
    margin: 0 0.25rem;
  }

  .nav-pills .nav-link i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .nav-pills .nav-link.active,
  .nav-pills .nav-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
  }

  .tip-card {
    position: relative;
    background-color: var(--white);
    border-radius: 15px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
    overflow: hidden;
  }

  .tip-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
  }

  .tip-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 1rem;
  }

  .tip-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
  }

  .tip-card p {
    font-size: 0.95rem;
    color: var(--gray);
  }

  .tip-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(4, 164, 220, 0.1);
    line-height: 1;
  }

  /* Sección del Ciclo del Agua */
  .water-cycle-section {
    background: linear-gradient(to bottom, #f0f9fe, #ffffff);
    position: relative;
    padding-bottom: 4rem;
  }

  .cycle-image-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
  }

  .cycle-image-container img {
    border: 8px solid var(--white);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }

  .cycle-diagram {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .cycle-steps {
    padding-left: 2rem;
  }

  .cycle-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

  .cycle-step:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  }

  .step-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .step-content {
    flex: 1;
  }

  .step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
  }

  .step-content p {
    font-size: 0.95rem;
    color: var(--gray);
    position: relative;
    z-index: 2;
  }

  /* Sección de Compromiso */
  .commitment-section {
    background: url('compromiso-agua.jpg') center/cover no-repeat;
    position: relative;
    color: var(--white);
  }

  .commitment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(4, 76, 140, 0.9), rgba(0, 166, 185, 0.85));
    z-index: 1;
  }

  .commitment-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
  }

  .commitment-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .commitment-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 110px;
  }

  .badge-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .badge-text {
    font-size: 0.85rem;
    font-weight: 600;
  }

  .water-drop-animation {
    margin-top: 2rem;
  }

  .drop-shape {
    width: 60px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto;
    animation: droplet-float 3s infinite ease-in-out;
  }

  @keyframes droplet-float {
    0%, 100% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-15px) scale(1.05);
    }
  }

  /* Sección de Huella Hídrica */
  .water-footprint-section {
    background-color: var(--white);
  }

  .footprint-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }

  .footprint-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
  }

  .card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: var(--shadow);
  }

  .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }

  .footprint-card:hover .card-icon img {
    transform: scale(1.1);
  }

  .footprint-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
  }

  .footprint-card p {
    font-size: 1rem;
    color: var(--gray);
  }

  .footprint-content {
    padding: 1.75rem;
    border-radius: 15px;
    background-color: var(--light-gray);
    height: 100%;
    box-shadow: var(--shadow);
  }

  .footprint-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
  }

  .info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .info-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
  }

  .info-icon.blue {
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
  }

  .info-icon.green {
    background: linear-gradient(145deg, var(--secondary-color), var(--secondary-dark));
  }

  .info-icon.red {
    background: linear-gradient(145deg, #424040, #534d4d);
  }

  .info-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
  }

  .info-content p {
    font-size: 0.9rem;
    color: var(--gray);
  }

  /* Animaciones con WOW.js - Si decides usarlo debes agregar el script */
  .wow {
    visibility: visible; /* Por defecto visible si no se carga WOW.js */
  }

  /* Estilos Responsivos */
  @media (max-width: 1200px) {
    .section-title {
      font-size: 2.25rem;
    }
  }

  @media (max-width: 992px) {
    section {
      padding: 4rem 0;
    }

    .section-title {
      font-size: 2rem;
    }

    .cycle-image-container {
      margin-bottom: 3rem;
    }

    .cycle-steps {
      padding-left: 0;
    }

    .commitment-badges {
      gap: 1rem;
    }
  }

  @media (max-width: 768px) {
    section {
      padding: 3rem 0;
    }

    .section-title {
      font-size: 1.75rem;
    }

    .water-stats {
      justify-content: center;
    }

    .nav-pills {
      overflow-x: auto;
      flex-wrap: nowrap;
      width: 100%;
      justify-content: flex-start;
      padding: 0.75rem;
    }

    .nav-pills .nav-link {
      white-space: nowrap;
      padding: 0.75rem 1rem;
    }

    .commitment-badges {
      gap: 0.75rem;
    }

    .commitment-badge {
      width: 90px;
    }

    .commitment-content {
      padding: 2rem 1rem;
    }
  }

  @media (max-width: 576px) {
    section {
      padding: 2.5rem 0;
    }

    .section-title {
      font-size: 1.5rem;
    }

    .section-subtitle {
      font-size: 0.85rem;
    }

    .lead {
      font-size: 1rem;
    }

    .stat-item {
      min-width: 100px;
      padding: 0.75rem 1rem;
    }

    .stat-number {
      font-size: 1.5rem;
    }

    .tip-icon, .step-number {
      width: 45px;
      height: 45px;
      font-size: 1.25rem;
    }

    .tip-card {
      padding: 1.5rem;
    }

    .tip-number {
      font-size: 2.5rem;
      top: 10px;
      right: 10px;
    }

    .cycle-step {
      margin-bottom: 1.5rem;
    }

    .footprint-card {
      padding: 1.5rem;
    }

    .footprint-content {
      padding: 1.5rem;
    }

    .card-icon {
      width: 90px;
      height: 90px;
    }
  }

/* Estilos para el botón flotante de WhatsApp - Watsi */
/* Botón flotante principal */
.watsi__button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    cursor: pointer;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.watsi__button.watsi-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.watsi__button.watsi__button--hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    pointer-events: none;
}

.watsi__button__open {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976d2 0%, #4caf50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.watsi__button:hover .watsi__button__open {
    transform: scale(1.1);
    background: linear-gradient(135deg, #1565c0 0%, #388e3c 100%);
    box-shadow: 0 6px 25px rgba(21, 101, 192, 0.6);
}

.watsi__button__sendtext {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1565c0 0%, #388e3c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    user-select: none;
}

.watsi__button:hover .watsi__button__sendtext {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(10px);
}

.watsi__button__sendtext::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 8px solid #1565c0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.watsi__button__send {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.watsi__button__send i {
    font-size: 26px;
    color: white;
    transition: all 0.3s ease;
    line-height: 1;
}

.watsi__tooltip {
    position: absolute;
    bottom: 75px;
    left: 0;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    user-select: none;
}

.watsi__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
}

.watsi__button:hover .watsi__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chat box */
.watsi__box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transform-origin: bottom left;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    overflow: hidden;
}

.watsi__box.watsi__box--show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.watsi__header {
    background: linear-gradient(135deg, #1565c0 0%, #00695c 100%);
    padding: 20px;
    position: relative;
    color: white;
}

.watsi__powered {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.watsi__powered svg {
    width: 60px;
    height: 12px;
    fill: white;
}

.watsi__close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.watsi__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.watsi__close::before,
.watsi__close::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.watsi__close::before {
    transform: rotate(45deg);
}

.watsi__close::after {
    transform: rotate(-45deg);
}

.watsi__box__scroll {
    max-height: 300px;
    overflow-y: auto;
}

.watsi__box__content {
    padding: 25px;
}

.watsi__message {
    background: linear-gradient(135deg, #e3f2fd 0%, #e0f2f1 100%);
    padding: 18px;
    border-radius: 15px;
    border-left: 4px solid #1e88e5;
    font-size: 16px;
    line-height: 1.5;
    color: #0d47a1;
    position: relative;
    animation: watsiFadeInMessage 0.5s ease-out;
}

@keyframes watsiFadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.watsi__message::before {
    content: '💬';
    position: absolute;
    top: -8px;
    left: 15px;
    background: #1e88e5;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Botón de acción en el chat */
.watsi__action {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    display: flex;
    gap: 10px;
}

.watsi__action__button {
    flex: 1;
    background: linear-gradient(135deg, #1e88e5 0%, #26a69a 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    animation: watsiGentlePulse 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.watsi__action__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: watsiShimmer 2.5s infinite;
}

.watsi__action__button:hover {
    background: linear-gradient(135deg, #1565c0 0%, #00695c 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
    animation-play-state: paused;
}

.watsi__action__button--blue {
    background: #2196f3;
    animation-delay: 1.5s;
}

.watsi__action__button--blue::before {
    animation-delay: 1.2s;
}

.watsi__action__button--blue:hover {
    background: #1976d2;
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

@keyframes watsiGentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }
}

@keyframes watsiShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animaciones */
@keyframes watsiPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(30, 136, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 136, 229, 0);
    }
}

.watsi__button__open {
    animation: watsiPulse 2s infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .watsi__box {
        width: calc(100vw - 20px);
        left: 10px;
        bottom: 15px;
    }

    .watsi__button {
        bottom: 15px;
        left: 15px;
    }

    .watsi__action {
        flex-direction: column;
    }

    .watsi__action__button {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* Ocultar en dispositivos móviles si deseas */
@media (max-width: 768px) {
    .watsi__button,
    .watsi__box {
        display: none !important;
    }
}

/* Estilos para el botón de volver arriba con ondas sutiles y periódicas (mismo diseño, nuevo nombre) */
.back-to-top-pulse {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(4, 76, 140, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 99;
}

.back-to-top-pulse svg {
    transition: transform 0.3s ease;
}

.back-to-top-pulse:hover {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    box-shadow: 0 6px 20px rgba(4, 76, 140, 0.4);
    transform: translateY(0) scale(1.05);
}

.back-to-top-pulse:hover svg {
    transform: translateY(-3px);
}

.back-to-top-pulse.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ondas más sutiles y periódicas */
.back-to-top-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--secondary-blue);
    opacity: 0;
    z-index: -1;
    animation: subtle-ripple 4s 2s ease-out infinite;
}

@keyframes subtle-ripple {
    0% {
        transform: scale(1);
        opacity: 0;
    }
    15% {
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Brillo periódico para el botón */
.back-to-top-pulse.visible {
    animation: subtle-glow 6s ease infinite;
}

@keyframes subtle-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(4, 76, 140, 0.3);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(4, 164, 220, 0.5);
    }
}

/* Ajustes responsivos */
@media screen and (max-width: 768px) {
    .back-to-top-pulse {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media screen and (max-width: 480px) {
    .back-to-top-pulse {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

  .facebook-news-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: #1877f2;
      color: white;
      padding: 10px 16px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: 600;
      width: 100%;
      transition: all 0.3s ease;
      box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
  }

  .facebook-news-btn:hover {
      background: #0a5dc3;
      transform: translateY(-2px);
      box-shadow: 0 6px 12px rgba(24, 119, 242, 0.4);
      color: white;
  }

  .facebook-news-btn i {
      font-size: 1.2rem;
  }

  .newsletter-form {
      margin-top: 15px;
  }

/* ===== Cambios de la revisión ===== */

/* 27. Al entrar con enlace directo, el encabezado fijo no tapa la sección */
.tips-tabs, #memorama { scroll-margin-top: 100px; }

/* 16. Ícono de "estás aquí" en el menú */
.capas-dropdown-item .icono-aqui { width: 1em; height: 1em; vertical-align: -0.125em; }

/* 11. En celular, "Regresar" ya no queda pegado a "Cultura del" */
@media (max-width: 768px) {
    .water-culture-hero { padding-top: 80px; }
}

/* 10. "Agua" se lee en el título del juego */
.water-memory-section .section-title .text-primary { color: var(--primary-light) !important; }

/* 12. Se ve qué carta tiene el foco con teclado */
.memory-card:focus-visible { outline: 3px solid #fdcb6e; outline-offset: 3px; border-radius: 15px; }

/* 24 y 25. Récord y botón para retar */
.game-record { color: #b7791f; font-weight: 600; font-size: 0.95rem; margin: -12px 0 18px; }
.game-record[hidden] { display: none; }
/* 22. Niveles: "Fácil · 8 parejas" en compu, en dos renglones en celular */
.nivel-parejas::before { content: " · "; }
@media (min-width: 769px) { .level-selector { max-width: 600px; } }
@media (max-width: 768px) {
    .level-btn { white-space: normal; line-height: 1.2; }
    .nivel-parejas { display: block; font-size: 0.85em; font-weight: 500; opacity: 0.9; }
    .nivel-parejas::before { content: none; }
}
.nuevo-record { display: inline-block; margin: 4px 0; color: #fff6c7; }
.btn-reto {
    display: flex; width: fit-content; align-items: center; gap: 8px; margin: 12px auto 0; padding: 8px 18px;
    background: #fff; color: #128c4a; border-radius: 25px; font-size: 1rem; font-weight: 700;
    text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: transform 0.2s ease;
}
.btn-reto:hover { color: #0b6b37; transform: translateY(-2px); }

/* 26. ¿Viste una fuga en la calle? */
.reporte-fuga {
    display: flex; gap: 20px; align-items: flex-start; max-width: 900px; margin: 40px auto 0;
    padding: 25px 28px; background: #fff; border-radius: 20px; border-left: 6px solid #e74c3c;
    box-shadow: 0 10px 30px rgba(4, 76, 140, 0.1);
}
.reporte-fuga-icono {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #e74c3c, #c0392b); color: #fff; font-size: 1.6rem;
}
.reporte-fuga h3 { color: var(--primary-dark); font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; }
.reporte-fuga p { color: var(--gray); margin: 0 0 15px; }
.reporte-fuga-botones { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-fuga {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 25px;
    background: rgba(4, 164, 220, 0.1); color: var(--primary-dark); font-weight: 600; font-size: 0.95rem;
    text-decoration: none; border: 1px solid rgba(4, 164, 220, 0.3); transition: all 0.3s ease;
}
.btn-fuga:hover { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.btn-fuga-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-fuga-wa:hover { background: #128c4a; border-color: #128c4a; }
.btn-fuga-app { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-fuga-app:hover { background: var(--primary-color); }
@media (max-width: 576px) {
    .reporte-fuga { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; }
    .reporte-fuga-botones { justify-content: center; }
}

/* 28. Imprimir consejos */
.btn-imprimir-consejos {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 25px;
    background: rgba(52, 152, 219, 0.1); border: 1px solid rgba(52, 152, 219, 0.3); color: #3498db;
    font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s ease;
}
.btn-imprimir-consejos:hover { background: rgba(52, 152, 219, 0.15); border-color: rgba(52, 152, 219, 0.5); color: #2980b9; transform: translateY(-2px); }
#hojaConsejos { display: none; }
@media print {
    body.imprimir-consejos > *:not(#hojaConsejos) { display: none !important; }
    body.imprimir-consejos #hojaConsejos { display: block; color: #000; font-size: 10pt; line-height: 1.35; }
    #hojaConsejos h1 { font-size: 20pt; color: #044c8c; margin: 0; }
    #hojaConsejos .hoja-sub { color: #555; margin: 2pt 0 12pt; }
    #hojaConsejos .hoja-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 12pt 24pt; }
    #hojaConsejos .hoja-bloque { break-inside: avoid; }
    #hojaConsejos h2 { font-size: 13pt; color: #04a4dc; border-bottom: 1pt solid #ccc; margin: 0 0 4pt; }
    #hojaConsejos ol { padding-left: 16pt; margin: 0; }
    #hojaConsejos li { margin-bottom: 3pt; }
    #hojaConsejos .hoja-pie { margin-top: 12pt; padding-top: 6pt; border-top: 1pt solid #ccc; font-weight: bold; }
    /* 5. Al imprimir la página normal, nada se queda escondido por las animaciones */
    .wow { opacity: 1 !important; animation: none !important; transform: none !important; }
}

/* 13. Animaciones de adorno: en pausa fuera de pantalla y apagadas si el celular pide menos movimiento */
.anim-pausada .drop, .anim-pausada .image-ripple, .anim-pausada .main-image, .anim-pausada .water-badge,
.anim-pausada .badge-wave, .anim-pausada .floating-icon, .anim-pausada .drop-shape,
.anim-pausada.water-memory-section::before { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    .drop, .image-ripple, .main-image, .water-badge, .badge-wave, .water-memory-section::before, .floating-icon, .drop-shape,
    .watsi__button__open, .watsi__action__button, .watsi__action__button::before,
    .back-to-top-pulse::before, .back-to-top-pulse.visible, .capas-bubble { animation: none !important; }
}
