/*
Theme Name: Mi Tema Rodolfo
Theme URI: https://rodolfomorenonefrologo.com/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A custom WordPress theme recreating rodolfomorenonefrologo.com, fully editable via the WP admin.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mi-tema-rodolfo
Tags: custom-header, custom-footer, responsive-layout, flexible-header, accessibility-ready
*/

/* Theme base styles will go below */ 

body {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: normal !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", sans-serif !important;
}

.footer-title,
.footer-location-title,
.footer-label,
.footer-social-label {
  font-weight: bold !important;
}

/* ====== MENÚ DE NAVEGACIÓN PERSONALIZADO ====== */
.custom-menu {
  display: flex !important;
  flex-direction: row !important;
  gap: 32px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.custom-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

.custom-menu li a {
  font-family: "Roboto", sans-serif;
  color: #3a556a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  padding: 4px 0;
  transition: color 0.2s;
  display: inline-block;
}

.custom-menu li a:hover,
.custom-menu li.current-menu-item a {
  color: #176187;
  text-decoration: underline;
}

/* Quitar viñetas de submenús */
.custom-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* HERO PORTADA INICIO - Ajuste para mostrar el 100% de la imagen de largo */
.homepage-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  aspect-ratio: 16/9;
  background-position: left center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.homepage-hero-inner {
  max-width: 900px;
  margin-left: 60px;
  color: #fff;
  padding-left: 40px;
}

/* Estilos para el texto del hero */
.homepage-hero-inner h1 {
  font-size: 3.5rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
}

.homepage-hero-inner p,
.homepage-hero-inner div {
  font-size: 1.5rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

@media (max-width: 900px) {
  .homepage-hero {
    aspect-ratio: 1.5/1;
    background-size: auto 100%;
  }
  .homepage-hero-inner {
    margin-left: 20px;
    max-width: 95vw;
    padding-left: 25px;
  }
  .homepage-hero-inner h1 {
    font-size: 2.8rem !important;
  }
  .homepage-hero-inner p,
  .homepage-hero-inner div {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 600px) {
  .homepage-hero,
  .experience-section {
    width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .homepage-hero-inner,
  .experience-container {
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .homepage-hero {
    aspect-ratio: 1/1.2;
    background-size: auto 100%;
  }
  .homepage-hero-inner {
    margin-left: 0px !important;
    margin-right: 0px !important;
    max-width: 90vw !important;
    padding: 0 30px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .homepage-hero-inner h1 {
    font-size: 2.5rem !important;
    margin-bottom: 25px !important;
    text-align: center !important;
  }
  .homepage-hero-inner div,
  .homepage-hero-inner p {
    font-size: 1.4rem !important;
    text-align: center !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .homepage-hero-inner {
    max-width: 95vw !important;
    padding: 0 25px !important;
  }
  .homepage-hero-inner h1 {
    font-size: 2.2rem !important;
    margin-bottom: 20px !important;
  }
  .homepage-hero-inner div,
  .homepage-hero-inner p {
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
  }
}

/* BIO SECCIÓN - Eliminando definiciones duplicadas y consolidando */

.bio-descripcion {
  box-sizing: border-box;
  color: rgb(34, 34, 34) !important;
  cursor: url("https://rodolfomorenefrologo.com");
  display: block;
  font-family: "Poppins", sans-serif !important;
  font-size: 18px !important;
  font-style: normal;
  font-weight: 300 !important;
  letter-spacing: normal;
  line-height: 28px !important;
  margin-bottom: 23px !important;
  overflow-wrap: break-word;
  text-align: left;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
}

.bio-certificaciones {
  margin-bottom: 60px !important;
}

.bio-certificaciones div {
  box-sizing: border-box;
  color: rgb(34, 34, 34) !important;
  cursor: url("https://rodolfomorenefrologo.com");
  display: block;
  font-family: "Poppins", sans-serif !important;
  font-size: 15px !important;
  font-style: normal;
  font-weight: 400 !important;
  height: auto;
  hyphens: auto;
  letter-spacing: normal;
  line-height: 28px !important;
  list-style-image: none;
  list-style-position: outside;
  list-style-type: none;
  margin-bottom: 8px !important;
  overflow-wrap: break-word;
  text-align: left;
  text-size-adjust: 100%;
  transition-behavior: normal;
  transition-delay: 0s;
  transition-duration: 0.3s;
  transition-property: color;
  transition-timing-function: ease;
  unicode-bidi: isolate;
  width: auto;
  max-width: 100%;
}

.bio-section .bio-info {
  color: #3a556a;
}

/* Elimino reglas que puedan heredar font-size a los certificados */
.bio-section .bio-info .bio-certificaciones {
  font-size: unset !important;
}

.bio-section a {
  font-size: 1.25rem;
  padding: 20px 48px;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .bio-section a {
    font-size: 1rem;
    padding: 14px 28px;
  }
}

@media (max-width: 600px) {
  .bio-section {
    padding: 30px 0;
  }
  .bio-section .bio-image img {
    max-width: 98vw;
    height: auto;
  }
  .bio-section .bio-info {
    padding: 0 10px;
  }
  .bio-info h2 {
    font-size: clamp(22px, 4vw, 36px) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .bio-descripcion {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .bio-certificaciones {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .bio-certificaciones div {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  
  .experience-container h2 {
    font-size: 28px !important;
  }
  
  .experience-container .experience-text {
    font-size: 15px !important;
  }
  
  .experience-container .experience-highlight {
    font-size: 18px !important;
  }
  
  .bio-image {
    width: 100% !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .bio-image img {
    max-width: 85% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 1100px) {
  .bio-container {
    gap: 40px;
    padding: 0;
  }
  
  .experience-container h2 {
    font-size: 36px !important;
  }
}

@media (max-width: 900px) {
  .bio-section .bio-container {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .bio-section .bio-image {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  .bio-section .bio-info {
    order: 2;
    width: 100%;
    text-align: center;
    padding: 0 25px;
  }
  .bio-section .bio-image img {
    max-width: 80vw;
    height: auto;
  }
}

/* FOOTER PERSONALIZADO */
.site-footer {
  min-height: 896px;
}

.footer-main {
  display: flex;
  width: 100vw;
  min-height: 896px;
}

.footer-info {
  align-self: auto;
  box-sizing: border-box;
  color: rgb(34, 34, 34);
  cursor: url("https://rodolfomoreneo.com");
  display: block;
  flex-basis: auto;
  flex-grow: 0;
  flex-shrink: 1;
  font-family: "Gothic A1", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  height: 896px;
  hyphens: auto;
  letter-spacing: normal;
  line-height: 25.2px;
  order: 0;
  overflow-wrap: break-word;
  padding-bottom: 203px;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 155px;
  position: relative;
  text-align: left;
  background: #4a6b7c;
  flex: 0 0 500px;
  max-width: 600px;
}

.footer-map {
  flex: 1 1 0;
  min-width: 0;
  min-height: 896px;
  background: #fff;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-title {
  font-size: 2.5rem !important;
  color: #fff !important;
  text-align: center;
  margin-bottom: 32px;
  font-family: inherit !important;
}

.footer-location-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.footer-label {
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}

.footer-tel {
  font-size: 1rem;
  color: #fff;
}

.footer-dir {
  font-size: 1rem;
  color: #fff;
}

.footer-social-label {
  font-size: 1rem !important;
  font-weight: bold !important;
  color: #C2E3F3 !important;
  display: block;
  margin-bottom: 16px;
}

.footer-social-link {
  font-size: 1.2rem !important;
  color: #fff !important;
  text-decoration: none;
  margin: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social-link:hover {
  color: #C2E3F3;
}

.footer-social-link i {
  font-size: 1.5rem;
}

.footer-info p {
  font-size: 24px !important;
  font-family: "Gothic A1", sans-serif !important;
  color: #C2E3F3 !important;
  margin: 0px 0px 24px !important;
  line-height: 1.4 !important;
}

.footer-social-block {
  margin-top: 32px;
  text-align: center;
}

/* Estilos para la página Acerca de mí */
.page-id-XX .entry-content, /* Cambia XX por el ID de tu página si quieres que solo aplique ahí */
.page-template-acerca-de-mi .entry-content,
.page-template-acerca-de-mi {
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
  background: #f0f4f3;
}

.page-template-acerca-de-mi h1,
.page-template-acerca-de-mi .wp-block-heading h1 {
  color: #4c7088;
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.1;
  padding: 0 15px;
}

.page-template-acerca-de-mi h2,
.page-template-acerca-de-mi .wp-block-heading h2 {
  color: #000000;
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding: 0 15px;
}

.page-template-acerca-de-mi em,
.page-template-acerca-de-mi .wp-block-paragraph em {
  font-style: italic;
  color: #000000;
}

.page-template-acerca-de-mi strong,
.page-template-acerca-de-mi .wp-block-paragraph strong {
  font-weight: bold;
  color: #000000;
}

.page-template-acerca-de-mi p,
.page-template-acerca-de-mi .wp-block-paragraph {
  margin-bottom: 1.1em;
  color: #000000;
  padding: 0 15px;
}

.page-template-acerca-de-mi ul,
.page-template-acerca-de-mi .wp-block-list {
  margin-left: 1.5em;
  margin-bottom: 1.1em;
  color: #000000;
  padding: 0 15px;
}

.page-template-acerca-de-mi li {
  color: #000000;
}

/* Estilos para imágenes en la página Acerca de mí */
.page-template-acerca-de-mi img,
.page-template-acerca-de-mi .wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.page-template-acerca-de-mi .wp-block-image {
  text-align: center;
  margin: 1.5em auto;
  padding: 0 15px;
}

/* Estilos específicos para móvil */
@media (max-width: 768px) {
  .page-template-acerca-de-mi img,
  .page-template-acerca-de-mi .wp-block-image img {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    display: block;
  }
  
  .page-template-acerca-de-mi .wp-block-image {
    padding: 0 20px;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .page-template-acerca-de-mi .wp-block-image {
    padding: 0 18px;
  }
}

/* Padding adicional para dispositivos móviles en elementos de texto */
@media (max-width: 768px) {
  .page-template-acerca-de-mi h1,
  .page-template-acerca-de-mi .wp-block-heading h1,
  .page-template-acerca-de-mi h2,
  .page-template-acerca-de-mi .wp-block-heading h2,
  .page-template-acerca-de-mi p,
  .page-template-acerca-de-mi .wp-block-paragraph,
  .page-template-acerca-de-mi ul,
  .page-template-acerca-de-mi .wp-block-list {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .page-template-acerca-de-mi h1,
  .page-template-acerca-de-mi .wp-block-heading h1,
  .page-template-acerca-de-mi h2,
  .page-template-acerca-de-mi .wp-block-heading h2,
  .page-template-acerca-de-mi p,
  .page-template-acerca-de-mi .wp-block-paragraph,
  .page-template-acerca-de-mi ul,
  .page-template-acerca-de-mi .wp-block-list {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* HEADER ESTILOS EXACTOS */
.site-header {
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 100;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.header-top {
  width: 100% !important;
  max-width: 100vw !important;
  background: #f6f6f6 !important;
  margin: 0 !important;
  padding: 16px 0;
  border: none;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.header-top-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 20px;
  box-sizing: border-box !important;
}

.slogan {
  font-family: "Roboto", sans-serif;
  font-weight: 700 !important;
  color: #3a556a;
  font-size: 15px;
  line-height: 1.2;
}

.phones {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #5a7a90;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  margin-left: 4px;
}

.phones::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%235a7a90" d="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin: 0 3px;
}

.header-main {
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  gap: 40px;
  box-sizing: border-box !important;
}

.header-logo {
  flex: 0 0 auto;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding img {
  max-height: 42px;
  width: auto;
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 20px;
}

.header-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Estilos unificados para botones CTA */
.header-cta,
.bio-cta {
  background: #cbe6ec;
  color: #4c7088;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  width: 274px;
  height: 50px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1.2;
  margin: 0;
  box-sizing: border-box !important;
}

.header-cta:hover,
.bio-cta:hover {
  background: #bde0e7;
  color: #4c7088;
  text-decoration: none;
}

/* MEDIA QUERIES MÓVILES CONSOLIDADOS */
@media (max-width: 900px) {
  .header-main {
    padding: 12px 10px !important;
    gap: 12px;
    max-width: 100vw !important;
  }

  .custom-menu {
    gap: 20px !important;
  }

  .header-cta,
  .bio-cta {
    width: 240px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .header-top-inner {
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
  }
  
  .slogan, .phones {
    font-size: 14px;
  }

  .header-main {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 15px 10px !important;
    max-width: 100vw !important;
  }

  .site-branding {
    width: 100%;
    justify-content: center;
  }

  .main-navigation {
    width: 100%;
    justify-content: center;
    padding-right: 0;
  }

  .custom-menu {
    justify-content: center !important;
    gap: 16px !important;
    flex-wrap: wrap;
  }

  .header-cta-wrap {
    width: 100%;
    justify-content: center;
  }

  .header-cta,
  .bio-cta {
    width: 90%;
    max-width: 280px;
    height: 42px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 6px 0;
  }

  .header-top-inner {
    padding: 0 5px;
  }

  .slogan, .phones {
    font-size: 13px;
  }

  .header-main {
    padding: 10px 5px !important;
    gap: 10px;
  }

  .custom-menu {
    gap: 12px !important;
  }

  .custom-menu li a {
    font-size: 14px;
  }

  .header-cta,
  .bio-cta {
    width: 95%;
    max-width: 260px;
    height: 40px;
    font-size: 13px;
  }

  .site-branding img {
    max-height: 36px;
  }
}

/* Correcciones para eliminar márgenes blancos en front-page */
.site-main {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.experience-section {
  width: 100%;
  margin: 0;
  padding: 80px 0 60px 0;
  background: #F0F4F3;
  position: relative;
  overflow: hidden;
}

.experience-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.experience-container h2 {
  color: #0D5C84 !important;
  font-size: 44px !important;
  font-weight: 700 !important;
  margin-bottom: 40px;
  font-family: "Poppins", sans-serif !important;
  line-height: 1.2;
}

.experience-container .experience-text {
  color: #0D5C84;
  font-size: 24px !important;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Poppins", sans-serif;
}

.experience-container .experience-highlight {
  color: #0D5C84;
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 30px;
  font-family: "Poppins", sans-serif !important;
}

.experience-container .experience-divider {
  border-bottom: 2px solid rgba(13, 92, 132, 0.3);
  width: 80%;
  max-width: 600px;
  margin: 40px auto 0;
}

.bio-section {
  width: 100%;
  margin: 0;
  padding: 80px 0;
  background: #F0F4F3;
}

.bio-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.bio-info {
  flex: 1;
  padding: 0 30px;
}

.bio-info h2 {
  box-sizing: border-box;
  color: rgb(76, 112, 136) !important;
  cursor: url("https://rodolfomorenefrologo.com");
  display: block;
  font-family: "Poppins", sans-serif !important;
  font-size: 61px !important;
  font-style: normal;
  font-weight: 600 !important;
  letter-spacing: normal;
  line-height: 1.1;
  margin: 0px;
  overflow-wrap: break-word;
  padding: 0px 0px 35px 0px;
  text-align: left;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
  height: auto;
  width: auto;
  max-width: 100%;
}

/* A partir de 1030px empezar a reducir gradualmente */
@media (max-width: 1030px) {
  .bio-info h2 {
    font-size: clamp(28px, 5.9vw, 61px) !important;
  }
}

@media (max-width: 1100px) {
  .bio-container {
    gap: 40px;
    padding: 0;
  }
  
  .experience-container h2 {
    font-size: 36px !important;
  }
}

@media (max-width: 900px) {
  .bio-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .bio-info {
    padding: 0 25px;
    text-align: center;
  }
  
  .bio-certificaciones div {
    padding-left: 0;
  }
  
  .bio-certificaciones div::before {
    position: static;
    margin-right: 8px;
  }
  
  .bio-image {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .bio-image img {
    max-width: 90%;
    width: auto;
    height: auto;
    margin: 0 auto;
  }
  
  .bio-info h2 {
    font-size: clamp(26px, 5.2vw, 52px) !important;
  }
  
  .experience-container h2 {
    font-size: 32px !important;
  }
  
  .experience-container .experience-text {
    font-size: 16px !important;
  }
}

@media (max-width: 700px) {
  .bio-info h2 {
    font-size: clamp(24px, 4.5vw, 42px) !important;
  }
}

@media (max-width: 600px) {
  .bio-info h2 {
    font-size: clamp(22px, 4vw, 36px) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .bio-descripcion {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .bio-certificaciones {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .bio-certificaciones div {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  
  .experience-container h2 {
    font-size: 28px !important;
  }
  
  .experience-container .experience-text {
    font-size: 15px !important;
  }
  
  .experience-container .experience-highlight {
    font-size: 18px !important;
  }
  
  .bio-image {
    width: 100% !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .bio-image img {
    max-width: 85% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  .bio-info h2 {
    font-size: clamp(20px, 3.5vw, 30px) !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
  }
  
  .bio-descripcion {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }
  
  .bio-certificaciones {
    padding-left: 25px !important;
    padding-right: 25px !important;
  }
  
  .bio-certificaciones div {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
}

@media (max-width: 360px) {
  .bio-info h2 {
    font-size: clamp(18px, 3vw, 24px) !important;
  }
}

.bio-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.bio-image img {
  width: 100%;
  height: auto;
  display: block;
}

.bio-image .doctor-name {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 18px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 4px;
}

.bio-cta {
  align-items: center;
  box-sizing: border-box;
  color: rgb(76, 112, 136);
  cursor: url("https://rodolfomorenefrologo.com");
  display: flex;
  flex-direction: row;
  font-family: "Gothic A1", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  height: 64px;
  justify-content: center;
  letter-spacing: normal;
  line-height: 25.2px;
  overflow-wrap: break-word;
  padding: 0px;
  position: relative;
  text-align: center;
  text-size-adjust: 100%;
  unicode-bidi: isolate;
  width: 237px;
  z-index: 4;
  -webkit-box-align: center;
  -webkit-box-direction: normal;
  -webkit-box-orient: horizontal;
  -webkit-box-pack: center;
  background: #cbe6ec;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
  margin: 30px auto 0 auto;
}

.bio-cta:hover {
  background: #b8dbe3;
  color: rgb(76, 112, 136);
  text-decoration: none;
}

/* Asegurar que los contenedores principales no tengan márgenes */
.container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Aseguramos que el fondo se extienda hasta la sección de experiencia */
.bio-section + .experience-section {
  margin-top: 0;
}

/* Estilos globales para imágenes de WordPress */
.wp-block-image {
  text-align: center;
  margin: 1.5em auto;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.wp-block-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Prevenir overflow horizontal en todas las imágenes */
img {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Media queries para móvil - aplicar a todas las imágenes de WordPress */
@media (max-width: 768px) {
  .wp-block-image {
    width: 100%;
    max-width: 100vw;
    margin: 1.5em 0;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .wp-block-image img {
    max-width: calc(100vw - 40px);
    width: 100%;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
  }
  
  /* También aplicar a imágenes directas */
  img {
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .wp-block-image {
    padding: 0 15px;
  }
  
  .wp-block-image img {
    max-width: calc(100vw - 30px);
  }
  
  img {
    max-width: calc(100vw - 30px);
  }
}

/* Asegurar que las figuras no causen overflow */
figure {
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  figure {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  figure {
    padding: 0 15px;
  }
}

/* Ocultar secciones vacías del front-page en móvil */
@media (max-width: 768px) {
  .front-page-main .hero,
  .front-page-main .about,
  .front-page-main .services,
  .front-page-main .testimonials,
  .front-page-main .contact,
  .front-page-main .location {
    display: none !important;
  }
  
  /* Ocultar el main completo si está vacío */
  .front-page-main {
    display: none !important;
  }
}

/* También ocultar el div derecho del hero en móvil */
@media (max-width: 768px) {
  .homepage-hero-right {
    display: none !important;
  }
  
  .homepage-hero-left {
    width: 100% !important;
  }
} 