/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100vh;  
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
  background: none;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Contenedor general */
.container {
  width: 100vw;
  max-width: none;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Header */
header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #e5ece7;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
}

header nav{
  width: 100%;
}

header nav ul {
  list-style: none;
  justify-content: right;
  margin: 0;
  padding: 1rem 0;
  display: flex;
  gap: 2rem;
}

nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: #0a355e;
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 8px;
}

nav a:hover {
  color:  #0fa04e;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Hero */
.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0a355e;
  padding: 0;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.hero::before{
  content: "";
  position: absolute;
  top: 65%;
  left: 70%;
  transform: translateX(-50%);
  width: 80%;
  height: 250px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.franja-verde{
  content: "";
  display: block;
  width: 100%;
  height: 1rem;
  background-color: #0fa04e;
}

.hero .container {
  max-width: 600px;
}

.hero h1 {
  font-size: 2.5rem;
  color: #f8f9f8;
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #f8f9f8;
}

.hero img {
  mask-image: linear-gradient(to right, transparent, black);
  mask-repeat: no-repeat;
  mask-size: cover;
  max-width: 400px;
  height: auto;
}

/* Highlights */
.highlights {
  background-color: #ffffff;
  padding-top: 4rem;
}

.cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 1.9rem;
  padding-top: 1.9rem;
}

.card {
  background-color:#cfe2f3;
  border: 1px solid #dbe5dd;
  border-radius: 8px;
  padding: 2rem;
  flex: 1 1 30%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h2 {
  color: #0fa04e;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: #0a355e;
  font-size: 1rem;
}

/* Faqs */

.faq{
  padding: 2rem;
  width: 100%;
  max-width: none;
}

.faq h2{
  text-align: left;
  font-size: 2rem;
  color: #0fa04e;
  margin-bottom: 2rem;
}

.faq-grid details{
  padding: 0.5rem;
  border-radius: 6px;
  background-color: #cfe2f3;
  transition: border-color 0.3s ease;
}

.faq-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.faq-grid summary{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #0a355e;
  color: #ffffff;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq summary:hover{
  background-color: #0fa04e
}

.faq details[open] summary{
  background-color: #0fa04e;
}

.faq summary::after{
  content: "▼";
  font-size: 1rem;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.faq details[open] summary::after{
  transform: rotate(180deg);
}

.faq-grid p{
  margin-top: 0.5rem;
  color: #333;
  margin-left: 3rem;
}

/* Footer */
footer {
  background-color: #0a355e;
  text-align: center;
  padding: 1rem ;
  font-size: 0.9rem;
  color: #0fa04e;
}

/* Address section */
.info-strip{
  width: 100%;
  background-color: none;
  border-top: 4px solid #0fa04e;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.75rem;
  color: #0a355e;
}

.info-strip-inner{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2rem;
  padding: 1rem;
  justify-content: space-between;
}

.info-item{
  display:flex;
  align-items: center;
  gap: 0.4rem;
}

.info-item img{
  width: 20px;
  height: 20px;
}

.info-item a{
color: #0a355e;
text-decoration: none;
}

.info-item a:hover{
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.info-title{
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.2rem;
}

.info-social-icons{
  display: flex;
  gap: 0.4rem;
}

.info-social-icons img{
  width: 20px;
  height: 20px;
}

.info-social-icons img:hover{
  opacity: 0.7;
}

.info-strip span{
  font-size: 0.85rem;
}

/* service.html */

.blur-background section{
  position: absolute;
  z-index: 0;
  overflow: hidden;
  display: flex;
}

.blur-background::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 55rem;
  background-image: url(../assets/pharmacy-image.jpg);
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1)60%, rgba(0,0,0,0.5)70%, rgba(0,0,0,0)100%);
  z-index: -1;
  overflow-x: hidden;
  overflow-y: hidden;
}

.white-box{
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 60%, rgba(255, 255, 255, 0.2) 100%);
  width: 100%;
  margin: 2rem auto;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
}

.white-box h1{
  padding-top: 2rem;
  padding-left: 2rem;
}

.white-box h3{
  padding-top: 2rem;
  padding-left: 5rem;
}

.container-service {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.container-cards-service{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1em;
  padding-bottom: 3rem;
  padding-top: 3rem;
}

.card-service{
  background-color: white;
  border: 1px solid white;
  border-radius: 8px;
  padding: 2rem;
  flex: 1 1 30%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.header-content-service{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container-service h1 {
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: #0a355e;
}

/* --- Móvil pequeño (360–480 px) --- */
@media (max-width: 480px) {

  html, body{
    overflow-x: hidden;
  }

  /* Header */
  .header-content,
  .header-content-service {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  header nav ul {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .hero .container {
    max-width: 100%;
  }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; }
  .hero img {
    max-width: 90%;
    margin-top: 1rem;
  }

  /*blur-background::before*/
  .blur-background::before{
    background-image: url(../assets/IMAGEN-para-moviles.jpg);
  }

  /* Cards */
  .cards {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .card {
    width: 100%;
    text-align: center;
  }

  .container-cards-service {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .card-service {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
  }

  .faq-grid{
    grid-template-columns: 1fr;
  }

  /* Info-strip */
  .info-strip-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }
  .info-item { flex-direction: column; }

  /* White box (Services) */
  .white-box {
    width: 95%;
    margin: 1rem auto;
    padding: 1rem;
  }

  /* Footer */
  footer { 
    font-size: 0.8rem; padding: 1rem; 
    max-width: 100%;
    margin: 0 auto;
    white-space: normal;
    overflow-wrap: wrap;
    text-align: center;
  }
}

/* --- Phablet (480–767 px) --- */
@media (min-width: 481px) and (max-width: 767px) {
  /* Header */

  .header-content,
  .header-content-service {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  header nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero img {
    max-width: 80%;
    margin-top: 1rem;
  }

  /* Cards */
  .cards {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  .card {
    width: 100%;
    flex: 1 1 calc(50% - 1rem);
    text-align: center;
  }

  .container-cards-service {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .card-service {
    width: 100%;
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    text-align: center;
  }

  /* Info-strip */
  .info-strip-inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 1rem;
  }

  /* Info item */
  .info-item{
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .info-item img{
    margin-bottom: 0.5rem;
  }

  .info-item span{
    display: block;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    max-width: 95%;
    line-height: 1.4;
    font-size: 0.8rem;
  }

  .info-title{
    display: block;
    margin-bottom: 0.3rem;
  }
}

/* --- Tablet (768–1023 px) --- */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Header */
  .header-content,
  .header-content-service {
    flex-direction: row;
    justify-content: space-between;
  }
  header nav ul {
    flex-direction: row;
    gap: 1rem;
  }

  /* Hero */
  .hero {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2rem;
  }
  .hero .container { max-width: 50%; }
  .hero img { max-width: 45%; }

  /* Cards */
  .cards{
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .card{
    flex: 1 1 calc(50% - 1.5rem);
  }

  .container-cards-service {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .card-service {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 1rem);
  }

  /* Info-strip */
  .info-strip-inner {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
  }

  /* White box */
  .white-box {
    width: 90%;
    margin: 2rem auto;
    padding: 2rem;
  }
}

/* Ajustes finos para móviles portrait (Galaxy S9 ~360px) */
@media (max-width: 400px) {

  .header-content,
  .header-content-service {
    flex-direction: column;
    gap: 0.5rem;
  }
  header nav ul {
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
  }

  .hero h1 { font-size: 1.4rem; }
  .hero p { font-size: 0.9rem; }
  .hero img { max-width: 100%; }

  .container-cards-service{
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .card{
    padding: 1rem;
    font-size: 0.9rem;
  }

  .card-service {
    flex: 1 1 100%;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
  }

  .info-strip-inner {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

/* Ajustes para phablet landscape (Galaxy S9 ~740px) */
@media (min-width: 600px) and (max-width: 767px) {
  .cards {
    flex-wrap: wrap;
    justify-content: center;
  }

  .container-cards-service {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .card{
    flex: 1 1 calc(50% - 1rem);
  }

  .card-service {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
    text-align: center;
  }

  .info-strip-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* --- Laptop (1024–1279 px) --- */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Header */
  .header-content,
  .header-content-service {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  header nav ul {
    flex-direction: row;
    gap: 1.5rem;
  }

  /* Hero */
  .hero {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 2rem;
  }
  .hero .container { max-width: 50%; }
  .hero img { max-width: 40%; }

  /* Cards */
  .cards {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .card {
    flex: 1 1 calc(33.333% - 2rem);
  }

  .container-cards-service {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .card-service {
    flex: 1 1 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
  }

  /* Info-strip */
  .info-strip-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
  }

  /* White box (Services) */
  .white-box {
    width: 75%;
    margin: 2rem auto;
    padding: 2rem;
  }
}

/* Laptop convencional 800px-1366px*/
@media (min-width: 1024px) and (max-width: 1440px){
  .info-strip{
    max-width: 100%;
    margin: 0 auto;
    white-space: normal;
    overflow-wrap: wrap;
    text-align: center;
  }
}