/*
Theme Name: Twenty Twenty-Five Child CEIDOCA
Template: twentytwentyfive
*/

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
}

/* ==========================
   HEADER, LOGO Y MENÚ FINAL
=========================== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 40px;
    background-color: #cf152d; /* Fondo del header */
    border-bottom: 3px solid #920416; /* Línea inferior */
    margin-bottom: 30px; /* espacio entre header y slider */
    color: #fff;
}

.site-header .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px; /* espacio en móviles */
}

.site-header .logo img,
.custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
}

/* Ocultar título del sitio y tagline */
.wp-site-title,
.wp-site-description,
.site-title-fallback,
.site-title {
    display: none !important;
}

/* Menú principal */
.menu-principal {
    flex-grow: 1;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
    margin-top: 10px;
}

.menu-principal ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-principal ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: background 0.3s ease;
}

.menu-principal ul li a:hover {
    background: rgba(255,255,255,0.15);
    border-radius: 5px;
}

/* Opcional: quitar línea horizontal del header */
.site-header hr {
    display: none !important;
}

/* ==========================
   SLIDER
=========================== */
.slider {
    max-width: 100%;
    overflow: hidden;
    margin-top: 20px; /* separación del header */
}

/* ==========================
   LAYOUT DE CONTENIDO
=========================== */
.layout-contenido {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 20px;
    padding: 20px;
}

.columna-izq,
.columna-der {
    background: #f3f3f3;
    padding: 15px;
    border-radius: 10px;
}

.columna-central {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

/* ==========================
   DOCTORES
=========================== */
.grid-doctores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.doctor {
    padding: 10px;
    text-align: center;
    border-radius: 10px;
}

.doctor img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* ==========================
   NOTICIAS
=========================== */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.noticia {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.noticia img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.noticia h3 {
    margin: 10px 0 5px 0;
}

.noticia p {
    font-size: 0.9rem;
    color: #555;
}

.noticia a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #cf152d;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.noticia a:hover {
    background: #c43346;
}

/* ==========================
   FOOTER
=========================== */
.footer-custom {
    background: #a7aaac;
    color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
    text-align: center;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.2em;
}

/* ==========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
    .layout-contenido {
        grid-template-columns: 1fr;
    }

    .site-header {
        padding: 15px 20px;
    }

    .site-header .logo {
        margin-bottom: 10px;
    }

    .menu-principal {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: flex-start;
    }

    .menu-principal ul {
        flex-direction: column;
        gap: 10px;
    }

    .slider {
        margin-top: 15px;
    }
}
/* === Ocultar encabezado heredado del tema padre === */
#headerimg,
#headerimg > div {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}
/* === HEADER FIJO (STICKY) === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Asegura que esté por encima del resto */
    margin-bottom: 0;
}

/* Añadimos espacio al contenido para que no quede oculto detrás del header */
body {
    padding-top: 70px; /* ajusta según la altura de tu header */
}
/* ===== HEADER FIJO CORREGIDO ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #cf152d;
    color: white;
    z-index: 1000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box; /* evita que el padding empuje el contenido fuera */
}

/* Asegurar que el contenido no se corte */
.menu-principal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end; /* alinear a la derecha */
    gap: 25px;
    overflow: visible; /* aseguramos que no se oculte nada */
}

.menu-horizontal {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-horizontal a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

body {
    padding-top: 60px; /* deja espacio para el header fijo */
    margin: 0;
}
.grid-doctores {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.doctor {
    width: calc(20% - 20px); /* 4 columnas */
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}
.doctor img {
    width: 180px; /* antes era 100px */
    height: auto;
    border-radius: 5%;
    object-fit: cover;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

/* Efecto hover para dar vida */
.doctor img:hover {
    transform: scale(1.08);
}

.hidden-doctor {
    display: none;
    opacity: 0;
}
/* Contenedor de los puntos */
#ver-mas-doctores {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    cursor: pointer;
    gap: 6px;
}

/* Cada punto */
#ver-mas-doctores span {
    width: 10px;
    height: 10px;
    background-color: #cf152d; /* Color principal (puedes cambiarlo) */
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Efecto hover */
#ver-mas-doctores:hover span {
    background-color: #c43346;
    transform: scale(1.3);
}

/* Animación sutil (opcional) */
@keyframes pulseDots {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}
#ver-mas-doctores span:nth-child(1) { animation: pulseDots 1.2s infinite ease-in-out; }
#ver-mas-doctores span:nth-child(2) { animation: pulseDots 1.2s infinite ease-in-out 0.2s; }
#ver-mas-doctores span:nth-child(3) { animation: pulseDots 1.2s infinite ease-in-out 0.4s; }
.footer-custom {
    background-color: #597d95;
    color: #f5f5f5;
    padding: 50px 20px;
    font-family: "Open Sans", sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #a7aaac;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col p, .footer-col a {
    color: #d1d1d1;
    font-size: 14px;
    line-height: 1.6;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fff;
}

/* Menú del footer */
.footer-menu {
    list-style: none;
    padding: 0;
}
.footer-menu li {
    margin: 8px 0;
}

/* Iconos sociales */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.social-icons a {
    color: #fff;
    background: #a7aaac;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: #ffffff;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}
/* === Footer: Alinear correctamente el título e íconos de redes === */
.footer-col:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start; /* 👈 mantiene todo arriba */
}

.footer-col:last-child h3 {
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.social-icons a {
    color: #fff;
    background: #a7aaac;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #cf152d;
    transform: translateY(-3px);
}

/* === Footer: columna 2 con enlaces manuales === */
.footer-col:nth-child(2) ul.footer-links {
    list-style-position: inside; /* viñetas pegadas al texto */
    padding-left: 0;             /* elimina margen extra */
    margin: 0;
}

.footer-col:nth-child(2) ul.footer-links li {
    margin-bottom: 6px;          /* espacio entre enlaces */
    line-height: 1.4;
}

.footer-col:nth-child(2) ul.footer-links li::marker {
    color: #ffffff;              /* color de las viñetas */
}

.footer-col:nth-child(2) a {
    color: #ddd;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-col:nth-child(2) a:hover {
    color: #fff;
    text-decoration: underline;
}
/* ===== MENÚ HAMBURGUESA RESPONSIVE ===== */
.menu-toggle {
  display: none;
  background: #cf152d;
  color: #fff;
  font-size: 26px;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
}

/* Mostrar el botón en pantallas pequeñas */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .menu-principal ul {
    display: none;
    flex-direction: column;
    background: #cf152d;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
  }

  .menu-principal ul.open {
    display: flex;
  }

  .menu-principal ul li {
    padding: 10px 0;
  }

  .menu-principal ul li a {
    display: block;
    width: 100%;
  }
}

/* ===== DOCTORES RESPONSIVE ===== */
@media (max-width: 1024px) {
  .doctor {
    width: calc(45% - 20px); /* 2 columnas en tablets */
  }
}

@media (max-width: 600px) {
  .doctor {
    width: 100%; /* 1 columna en móviles */
  }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-col {
    margin-bottom: 20px;
  }

  .social-icons {
    justify-content: center;
  }
}
/* ==== BLOQUES DE ANUNCIOS LATERALES ==== */
.anuncio {
  display: flex;
  align-items: center;
  background-color: #d4d4d4;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 10px;
  gap: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anuncio img {
  width: 70px;
  height: auto;
  border-radius: 5px;
}

.anuncio-texto {
  flex: 1;
  color: #fff;
}

.anuncio h3 {
  font-size: 1rem;
  margin: 0 0 5px 0;
  color: #fff;
}

.anuncio h3 span {
  color: #cf152d; /* Amarillo para resaltar palabra */
}

.anuncio a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
  font-size: 0.9rem;
}

.anuncio:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ==== Variaciones de color ==== */
.anuncio.azul {
  background-color: #0a5a8f;
}

.anuncio.gris {
  background-color: #6c6c6c;
}

/* ==== Responsive ==== */
@media (max-width: 768px) {
  .anuncio {
    flex-direction: column;
    text-align: center;
  }

  .anuncio img {
    width: 100%;
    max-width: 150px;
  }
}

