/* landing-dermocosmetica.css */

html, body {
  overflow-x: hidden;
}

.landing-dermocosmetica {
  font-family: 'Helvetica Neue', sans-serif;
  color: #333;
  
}

.landing-dermocosmetica .btn-primary {
  background-color: #005baa;
  border-color: #005baa;
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
}

.landing-dermocosmetica .btn-outline-primary {
  border-radius: 30px;
  font-weight: 500;
}

.landing-dermocosmetica .card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-dermocosmetica .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.landing-dermocosmetica .list-unstyled li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.landing-dermocosmetica .list-unstyled i {
  color: #28a745;
}

/*Editar desde aqui pleca con logo*/
.pleca-logo {
  background-color: #4da99c;
  padding: 1rem ;
}

.logo-pleca {
  max-width: 250px;
  width: 100px;
  height: auto;
}


/*Editar desde aqui banner principal*/


.hero-link {
  display: inline-block;
  overflow: hidden;
  text-decoration: none;
}

.hero-banner {
  width: 100vw;
  max-width: 100%;
  padding-top: 25%; /* Mantiene la proporción del banner */
  background-image: url('https://image.farmaciasyza.mx/lib/fe2f117171640675761075/m/1/b65af070-a99f-4304-ac35-fade43da0e4e.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 0px;
}

/* Efecto hover solo en dispositivos con puntero */
@media (hover: hover) {
  .hero-link:hover .hero-banner {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }
}

/* Versión mobile */
@media (max-width: 767.98px) {
  .hero-banner {
    background-image: url('https://image.farmaciasyza.mx/lib/fe2f117171640675761075/m/1/b04f28cd-bd2c-4768-944e-175d6eb4ab86.jpg');
    padding-top: 90%; /* Altura relativa para banners más verticales en mobile */
    border-radius: 0px; /* opcional para evitar bordes redondeados en mobile */
  }
}


/*Editar desde aqui cintillo*/

.promo-link {
    display: block;
    padding: 10px;
    border-radius: 20px;
    width: 100%;
    max-width: 100%;
  }

  .promo-banner {
    width: 100%;
    height: 0;
    padding-top: 20%; /* Aspect ratio 16:9 por default, ajustable */
    /*background-image: url('https://image.farmaciasyza.mx/lib/fe2f117171640675761075/m/1/cbbe30a9-ac0e-47fe-bb93-ea2f47f4e455.png');
    */
    background-image: url('https://image.farmaciasyza.mx/lib/fe2f117171640675761075/m/1/bed2842f-6477-4e04-8cef-b4a391150360.png');
   
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  @media (min-width: 768px) {
    .promo-link {
      max-width: 80%;
    }

    .promo-banner {
    /*background-image: url('https://image.farmaciasyza.mx/lib/fe2f117171640675761075/m/1/cbbe30a9-ac0e-47fe-bb93-ea2f47f4e455.png');
    */background-image: url('https://image.farmaciasyza.mx/lib/fe2f117171640675761075/m/1/bed2842f-6477-4e04-8cef-b4a391150360.png');
    
    }
  }

  @media (hover: hover) {
    .promo-link:hover .promo-banner {
      transform: scale(1.03);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
  }
  
  /*Editar desde aqui categorias*/
.categoria-card {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.categoria-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.categoria-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #4da99c 0%, transparent 50%);
  color: white;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centrado vertical */
  align-items: center;     /* centrado horizontal */
  padding: 1rem;
  z-index: 1;
}

.categoria-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin: 0;
  z-index: 2;
}

.categoria-btn {
  position: absolute;
  bottom: 0px;
  right: 0px;
  z-index: 2;

  /* Tamaño duplicado */
  font-size: 1.03rem;
  padding: 0.6rem 1.2rem;

  /* Bordes redondeados solo en 2 esquinas */
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;

  color: #4da89b;
  border: 1px solid #4da89b;
  background-color: #fff;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.categoria-btn:hover {
  background-color: #4da89b;
  color: #fff;
}

.categoria-btn:hover {
  background-color: #4da89b;
  color: #fff;
}

.categoria-btn:hover {
  background-color: #4da89b;
  color: #fff;
}

.categoria-btn:hover {
  background-color: #4da89b;
  color: #fff;
}

/*Editar desde aqui guias*/
.guia-section {
  background-color: #f9f9f9;
}

/* Pleca con título */
.guia-header {
  background-color: #4da89b;
  width: 100%;
  border-radius: 0;
}

.guia-header h2 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

@media (min-width: 768px) {
  .guia-header {
    width: 80%;
    border-radius: 20px;
  }
}

.guia-contenido {
  max-width: 80%;
}

.guia-descripcion {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

/* Call to Action destacado */
.guia-cta {
  font-size: 1.265rem; /* 15% más grande que 1.1rem */
  font-weight: bold;
  color: #222;
}

.guia-banner img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Versión móvil sin bordes y full width */
@media (max-width: 767.98px) {
  .guia-banner img.sin-bordes {
    border-radius: 0;
    width: 100vw;
  }
}

 /*Editar desde aqui blog*/
 

/* Blog Cards */
.blog-card {
  background: transparent;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  aspect-ratio: 1 / 1; /* Cuadrado para la izquierda */
}

.blog-image-rectangular {
  aspect-ratio: 2 / 1; /* Rectángulo para las entradas de la derecha */
}

.blog-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.blog-description {
  font-size: 1.2rem;
  color: #666;
}

/* Botón estilo ficha */
.blog-btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #4da89b;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.blog-btn:hover {
  background-color: #3d8f85;
}

/* Responsive */
@media (max-width: 767.98px) {
  .blog-container {
    max-width: 100%;
    padding: 0 1rem;
  }
  

  .blog-image {
    aspect-ratio: 1 / 1;
  }

  .blog-image-rectangular {
    aspect-ratio: 2 / 1;
  }

  .blog-card {
    margin-bottom: 1.5rem;
  }

  .blog-btn {
    width: 100%;
    text-align: center;
  }
}

/* Sección de Ubicaciones */
.ubicaciones-section {
  background-color: #f8f9fa;
}
.ubicaciones-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
}
.ubicaciones-section p {
  font-size: 1rem;
  color: #555;
}
.ubicaciones-section .btn-group .btn {
  min-width: 160px;
}

/* Sección de Catalogo completo CTA */
.cta-final {
  background-color: #4da99c;
  color: #fff;
}

/* Tipografía refinada */
.cta-final .cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Botón con hover animado */
.cta-final .btn-cta.btn {
  background-color: #4da89b;
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-final .btn-cta.btn:hover {
  background-color: #3d8f85;
  transform: translateY(-3px);
}

/* Sección de Legales */
.legales-section {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  font-size: 0.85rem;
}

.legales-text {
  line-height: 1.6;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .legales-text {
    text-align: left;
    padding: 0 1rem;
  }
}


/* === Blog Section Personalizado === */

.blog-container {
  max-width: 100%;
  margin: 0 auto;
}



/* Imagen con borde verde y fondo */
.blog-image-wrapper {
  border: 2px solid #4da89b;
  border-radius: 20px;
  overflow: hidden;
}

.blog-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
}

.blog-image-rectangular {
  aspect-ratio: 2 / 1;
}

/* Overlay que contiene el texto sobre la imagen */
.blog-overlay {
  background-color: rgb(255, 255, 255, 0.7);
  border-radius: 15px;
  padding: 1rem;
  margin: 1rem;
}

/* Títulos y descripción sin estilo de enlace */
.blog-title,
.blog-description {
  margin: 0;
  padding: 0;
  color: #333;
  text-decoration: none;
}

.blog-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.blog-description {
  font-size: 1.2rem;
  color: #666;
}

/* Botón estilo ficha */
.blog-btn {
  display: inline-block;
  background-color: #4da89b;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.blog-btn:hover {
  background-color: #3d8f85;
}

/* Responsive */
@media (max-width: 767.98px) {
  .blog-container {
    padding: 0 1rem;
  }

  .blog-image {
    aspect-ratio: 1 / 1;
  }

  .blog-image-rectangular {
    aspect-ratio: 2 / 1;
  }

  .blog-card {
    margin-bottom: 1.5rem;
  }

  .blog-btn {
    width: 100%;
    text-align: center;
  }

  .blog-overlay {
    margin: 1rem 0;
  }
}

/* Sección SEO expandible */
.seo-expandible {
  background-color: #f5f5f5;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.seo-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.seo-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background-color: transparent;
  border: none;
  color: #4da89b;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.seo-toggle-btn:hover {
  color: #3d8f85;
}

.rotate-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.seo-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  padding: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.seo-content.show {
  max-height: 1000px; /* ajusta según el contenido */
  padding-top: 1rem;
}

.seo-content p {
  margin-bottom: 1rem;
}


/* quita el color y el underline a los links del header y footer manteniendo los estilos de los botones del resto de la landing */

.landing-dermocosmetica a:not([class]) {
  color: inherit;
  text-decoration: none;
}

header a,
footer a {
  text-decoration: none !important;
  color: inherit !important;
}


/* quita el desborde del hero */
.hero-link {
  display: block;
  overflow: hidden;
  max-width: 100vw;
}

.hero-banner {
  width: 100vw;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 767.98px) {
  .hero-link {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-banner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body,
  html {
    overflow-x: hidden;
  }
}