:root {
  --cw-width: 1250px;
  --ccu-red: #dc2626;
  --ccu-red-soft: rgba(220, 38, 38, 0.12);
  --ccu-dark: #0f172a;
  --ccu-text: #334155;
  --ccu-border: rgba(203, 213, 225, 0.9);
  --ccu-bg: #f8fafc;
}

/* HEADER SLIDER */
.cw-hero-slider {
    position: relative;
    height: 520px;
    max-width: var(--cw-width);
    width: calc(100% - 30px);
    margin: 20px auto 0 auto;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 18px 45px rgba(15,23,42,.15);
}

.cw-hero-slider,
.cw-menu-hero,
.cw-section {
  max-width: var(--cw-width);
  width: calc(100% - 30px);
  box-sizing: border-box;
}

.cw-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  animation: cwSlider 30s infinite;
}

.cw-slide-1 { background-image: url("../imagenes/imgpap0grande.png"); animation-delay: 0s; }
.cw-slide-2 { background-image: url("../imagenes/imgpap1grande.png"); animation-delay: 6s; }
.cw-slide-3 { background-image: url("../imagenes/imgpap2grande.png"); animation-delay: 12s; }
.cw-slide-4 { background-image: url("../imagenes/fondo4.png"); animation-delay: 18s; }
.cw-slide-5 { background-image: url("../imagenes/fondo5.png"); animation-delay: 24s; }

.cw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.20), rgba(220,38,38,.22));
}

.cw-logo-overlay {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 100;
}

.cw-logo-overlay img {

  width: 240px;
  height: auto;

  background: rgba(255,255,255,.96);

  padding: 12px;

  border-radius: 18px;

  border: 1px solid var(--ccu-border);

  border-top: 2px solid var(--ccu-red);

  box-shadow: 0 18px 45px rgba(15,23,42,.12);

  transition: all .35s ease;
}

.cw-logo-overlay img:hover {

  transform: translateY(-3px);

  box-shadow: 0 25px 70px rgba(15,23,42,.20);

  border-color: rgba(220,38,38,.35);
}

@keyframes cwSlider {
  0% { opacity: 0; transform: scale(1); }
  8% { opacity: 1; }
  28% { opacity: 1; transform: scale(1.08); }
  36% { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1); }
}

.cw-logo-overlay {

  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 100;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* MENU */

.cw-menu-hero {
  position: sticky;
  top: 0;
  z-index: 9999;
  max-width: var(--cw-width);
  width: calc(100% - 30px);
  box-sizing: border-box;
  margin: 0 auto 35px auto;
  padding: 16px 25px;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--ccu-border);
  border-top: 2px solid var(--ccu-red);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 18px 45px rgba(15,23,42,.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cw-logo-hero {
  font-size: 28px;
  font-weight: 900;
  color: var(--ccu-dark);
  text-decoration: none;
}

.cw-menu-links a {
  margin-left: 18px;
  color: var(--ccu-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.cw-menu-links a:hover {
  color: var(--ccu-red);
}

.cw-btn-menu {
  background: var(--ccu-red);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
}

/* ESTRUCTURA */

.cw-main {
  background: var(--ccu-bg);
}

.cw-section {
  max-width: var(--cw-width);
  width: calc(100% - 30px);
  margin: auto;
  padding: 55px 25px;
  border-radius: 18px;
  box-sizing: border-box;
}

.cw-section-white {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--ccu-border);
  box-shadow: 0 18px 45px rgba(15,23,42,.10);
  margin-bottom: 35px;
}

.cw-footer {
  background: var(--ccu-dark);
  color: white;
  padding: 35px;
}

/* MODULOS */

.cw-modulos-title {
  text-align: center;
  margin-bottom: 42px;
}

.cw-modulos-kicker {
  display: inline-block;
  background: var(--ccu-red);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 14px;
}

.cw-modulos-title h2 {
  font-size: 42px;
  color: var(--ccu-dark);
  font-weight: 900;
  margin: 0 0 12px 0;
}

.cw-modulos-title p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ccu-text);
  font-size: 18px;
  line-height: 1.6;
}

.cw-modulos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.cw-modulo-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--ccu-border);
  border-radius: 18px;
  padding: 25px;
  min-height: 235px;
  display: flex;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15,23,42,.14);
  transition: all .35s ease;
}

.cw-modulo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--ccu-red);
  opacity: 0.4;
  transition: all .3s ease;
}

.cw-modulo-card:hover::before {
  opacity: 1;
  height: 3px;
}

.cw-modulo-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 80px;
  height: 80px;
  background: rgba(220,38,38,.03);
  border-radius: 50%;
}

.cw-modulo-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 25px 70px rgba(15,23,42,.22);
  border-color: rgba(220,38,38,.35);
}

.cw-modulo-icon {
  width: 105px;
  min-width: 105px;
  height: 105px;
  border-radius: 18px;
  background: var(--ccu-red-soft);
  border: 1px solid rgba(220,38,38,.16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-modulo-icon img {
  width: 88px;
  height: auto;
  transition: transform .35s ease;
}

.cw-modulo-card:hover .cw-modulo-icon img {
  transform: scale(1.08);
}

.cw-modulo-info {
  flex: 1;
  position: relative;
  z-index: 2;
}

.cw-modulo-info h4 {
  color: var(--ccu-dark);
  font-size: 21px;
  font-weight: 900;
  margin: 0 0 12px 0;
}

.cw-modulo-info p {
  color: var(--ccu-text);
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
}

.cw-badge,
.cw-badge-rayen,
.cw-badge-hpv {
  display: inline-block;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  margin-left: 6px;
}

.cw-badge {
  background: var(--ccu-red);
}

.cw-badge-rayen {
  background: var(--ccu-dark);
}

.cw-badge-hpv {
  background: rgba(220,38,38,.75);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .cw-modulos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .cw-hero-slider {
    height: 380px;
  }

  .cw-logo-overlay img {
    width: 180px;
  }

  .cw-menu-hero {
    margin: -25px 15px 25px 15px;
    flex-direction: column;
    gap: 12px;
  }

  .cw-menu-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .cw-menu-links a {
    margin-left: 0;
  }
}

@media (max-width: 700px) {
  .cw-modulos-title h2 {
    font-size: 32px;
  }

  .cw-modulos-title p {
    font-size: 16px;
  }

  .cw-modulos-grid {
    grid-template-columns: 1fr;
  }

  .cw-modulo-card {
    flex-direction: column;
  }
}

/* ==============================
   RESEÑA CITOWEB - ESTILO CCU
================================= */

.cw-resena-wrap {
  width: 100%;
}

.cw-resena-title {
  text-align: center;
  margin-bottom: 42px;
}

.cw-resena-kicker {
  display: inline-block;
  background: var(--ccu-red);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 14px;
}

.cw-resena-title h2 {
  font-size: 42px;
  color: var(--ccu-dark);
  font-weight: 900;
  margin: 0 0 12px 0;
}

.cw-resena-title p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--ccu-text);
  font-size: 18px;
  line-height: 1.6;
}

.cw-resena-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--ccu-border);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15,23,42,.12);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.cw-resena-image {
  min-height: 430px;
  position: relative;
  overflow: hidden;
}

.cw-resena-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.12), rgba(220,38,38,.20));
}

.cw-resena-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw-resena-content {
  padding: 38px;
}

.cw-resena-content h3,
.cw-resena-more-content h3 {
  color: var(--ccu-dark);
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 18px 0;
}

.cw-resena-content p,
.cw-resena-more-content p {
  color: var(--ccu-text);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
  text-align: justify;
}

.cw-resena-benefits {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 26px;
}

.cw-resena-small-img img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.18);
}

.cw-resena-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cw-resena-benefits li {
  color: var(--ccu-text);
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid rgba(203,213,225,.75);
  position: relative;
  line-height: 1.55;
}

.cw-resena-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--ccu-red);
  color: white;
  border-radius: 999px;
  text-align: center;
  line-height: 22px;
  font-size: 13px;
  font-weight: 900;
}

.cw-resena-btn {
  background: var(--ccu-red);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(220,38,38,.22);
  transition: all .25s ease;
}

.cw-resena-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(220,38,38,.28);
}


.cw-resena-more {

    background: rgba(255,255,255,.96);

    border: 1px solid var(--ccu-border);

    border-radius: 18px;

    box-shadow: 0 18px 45px rgba(15,23,42,.10);

    display: grid;

    grid-template-columns: 280px 1fr;

    gap: 35px;

    align-items: start;

    overflow: hidden;

    max-height: 0;

    opacity: 0;

    transform: translateY(-10px);

    padding-left: 35px;
    padding-right: 35px;

    padding-top: 0;
    padding-bottom: 0;

    margin-top: 0;

    transition:
        max-height .7s ease,
        opacity .35s ease,
        transform .35s ease,
        padding .35s ease,
        margin .35s ease;
}

.cw-resena-more.abierto {

    max-height: 4000px;

    opacity: 1;

    transform: translateY(0);

    padding: 35px;

    margin-top: 35px;
}




.cw-resena-more-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.16);
}

@media (max-width: 900px) {
  .cw-resena-card,
  .cw-resena-more,
  .cw-resena-benefits {
    grid-template-columns: 1fr;
  }

  .cw-resena-image {
    min-height: 280px;
  }

  .cw-resena-content,
  .cw-resena-more {
    padding: 25px;
  }

  .cw-resena-title h2 {
    font-size: 32px;
  }

  .cw-resena-title p {
    font-size: 16px;
  }
}





@keyframes aparecerHistoria {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 95px;
}