
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

ol, ul, li, a {
  list-style: none;
}


/* === Reset & Base === */


body {
  font-family: "Josefin Sans", sans-serif;
  background-color: #f2f2f2;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === Header Layout === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  height: 60px;
  font-weight: 600;
}

.header-brand {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
}

.logo-banner {
  width: 40px;
  margin-left: 0.5rem;
}

/* === Nav Styles === */
nav {
  display: flex;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav ul li a {
  font-size: 0.8rem;
  color: #111;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
  background-color: #007BFF;
  color: #fff;
  cursor: pointer;
}

/* === Tablet & Desktop Adjustments === */
@media (min-width: 768px) {
  header {
    height: 85px;
    padding: 0 2rem;
  }

  .header-brand {
    font-size: 1.5rem;
    padding-right: 2rem;
    border-right: 3px solid #111;
  }

  nav ul li a {
    font-size: 1.2rem;
  }

  .burger {
    display: none;
  }
}

/* === Mobile Styles === */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 1rem;
  }

  .header-brand {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .logo-banner {
    height: 30px;
  }

  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 42px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .burger span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #111;
    border-radius: 2px;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  nav.show {
    margin-top: 20px;
    display: flex;
    opacity: 0.9;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    padding: 10px 0;
  }

  nav ul li a {
    font-size: 1.2rem;
    font-family: "Roboto", sans-serif;
  }
}



/*end of the header nav*/

/*logo inside header*/

@media (min-width: 768px) {

  .header-brand {
    font-size: 1.5rem;
    border-right: 3px solid #111;
    padding-right: 2rem;
  }


  .header-cases {
    display: block;
    font-size: 1rem;
    border: 1px solid #111;
    padding: 0.5rem 1rem;
  }
}



/* Button look on hover */

/* === Index Banner === */
.index-banner {
  width: 100%;
  height: calc(100vh - 60px);
  background-image: url('/images/head_banners/main_banner.jpg');
  background-size: cover;
  background-position: 50% 80%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: justify;
  padding: 0.8rem;
  margin-top: 4%;
}

.index-banner h2,
.index-banner h1 {
  color: #fff;
  text-shadow: 2px 2px 10px #1d1d1d;
  line-height: 1.2;
}

.index-banner h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.index-banner h1 {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
}

@media (min-width: 1200px) {
  .index-banner {
    align-items: flex-start; /* Align items to the left */
    justify-content: flex-start; /* Push items to the top */
    padding: 2rem; /* Optional: add some spacing from edges */
    text-align: left; /* Optional: align text to the left */
  }

  .index-banner h1,
  .index-banner h2 {
    max-width: 800px; /* Optional: limit line length */
  }

  .index-banner h1,
  .index-banner h2 {
    margin-top: 0; /* Remove default margin */
  }

  .index-banner {
    padding-top: 2rem; /* Optional: lift the entire content */
  }
}



@media (min-width: 768px) {
  .index-banner {
    height: calc(100vh - 85px);height: calc(100vh - 85px);
    padding: 2rem;
    background-position: 8px -140px;
  }

  .index-banner h2 {
    font-size: 3.5rem;
    padding-top: 2rem;
  }

  .index-banner h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
}

/* === Index Links === */
.index-links a:nth-child(1) .index-boxlink-square { background-image: url('/images/main_box/casos-ini-1.jpg'); }
.index-links a:nth-child(2) .index-boxlink-rectangle { background-image: url('/images/main_box/nosotros.jpg'); }
.index-links a:nth-child(3) .index-boxlink-square { background-image: url('/images/main_box/especialidades.jpg'); }
.index-links a:nth-child(4) .index-boxlink-rectangle { background-image: url('/images/main_box/pacientitos.jpg'); }
.index-links a:nth-child(5) .index-boxlink-square { background-image: url('/images/main_box/saber-mas-box.jpg'); }
.index-links a:nth-child(6) .index-boxlink-square { background-image: url('/images/main_box/contact-2.png'); }

.index-links a .index-boxlink-square,
.index-links a .index-boxlink-rectangle {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: box-shadow 0.4s, transform 0.4s;
}

.index-boxlink-square:hover,
.index-boxlink-rectangle:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

.index-links div {
  margin: 16px;
  width: calc(100% - 32px);
  height: 100px;
  background-color: #f2f2f2;
}

.index-links div h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 100px;
  color: #fff;
  text-shadow: 5px 4px 4px rgba(0, 0, 0, 5);
  text-align: center;
  text-transform: uppercase;
}

.hero img {
  display: none;
}



@media (min-width: 900px) {
  .wrapper {
    width: 100%;
    margin: 0 auto;
  }

  .main-cases {
    padding-bottom: 50px;
    margin: 15px;
  }

  .index-banner {
    height: 450px;
  }

  .index-banner h1 {
    display: block;
    width: 560px;
    margin: 0 auto;
  }

  .index-links {
    overflow: hidden;
  }

  .index-links div {
    margin: 20px 10px 0;
    height: 230px;
    float: left;
  }

  .index-boxlink-square {
    width: calc(25% - 20px) !important;
  }

  .index-boxlink-rectangle {
    width: calc(50% - 20px) !important;
  }

  .index-links div h3 {
    line-height: 230px;
  }

  aside .hero div {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  aside .hero div p {
    padding: 0 40px 0 20px;
  }
  
}

/*mobile phone adjustment sections images*/
@media (max-width: 768px) {
  .index-links a:nth-child(1) .index-boxlink-square {
    background-position: 80% 20%;
  }

  .index-links a:nth-child(2) .index-boxlink-rectangle {
    background-position: 90% 30%;
  }

  .index-links a:nth-child(3) .index-boxlink-square {
    background-position: 90% 30%;
  }

  .index-links a:nth-child(4) .index-boxlink-rectangle {
    background-position: 70% 30%;
  }

  .index-links a:nth-child(5) .index-boxlink-square {
    background-position: 80% 50%; 
  }

  .index-links a:nth-child(6) .index-boxlink-square {
    background-position: 20% 30%; 
  }
}


/* === Mobile & Small Screens === */
.hide-text {
  display: none;
}

@media (min-width: 1000px) {
  .hide-text {
    display: block;
    font-size: 20px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  main {
    align-items: flex-end;
  }

  main .main-intro {
    padding-bottom: 8vh;
  }

  main .main-intro h1 {
    font-size: 5rem;
    line-height: 1.25;
    text-align: center;
  }

  main p {
    text-align: center;
    padding: 0 20px;
    line-height: 1.75;
  }

  main a {
    margin: 30px auto;
  }

  main .main-quotes {
    display: none;
  }


}

@media (max-width: 480px) {
  .hide {
    display: none;
  }
}


/*Testimonios */
.title-comments{
  margin-top: 4%;
  font-size: 2.8rem;
  font-family: "Josefin Sans", sans-serif;
  
}

.opiniones {
  padding: 1.5rem 1rem;
  background-color: #eee;
  text-align: center;
}

.opiniones h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contenedor-opiniones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  padding: 2px;
}

.opinion {
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.opinion img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.opinion h3 {
  margin: 0.3rem 0;
  font-size: 1rem;
  color: #333;
}

.opinion p {
  font-style: italic;
  font-size: 1rem;
  color: #555;
  margin: 0.3rem 0 0;
}
/*Fin de Testimonios */


/*preguntas frequentes*/
.preguntas {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 2%;
}

.frequentes {
  text-align: center;
  margin-bottom: 2rem;
}


.faq {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  font-size: 1.2rem;
}

.faq:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.faq-question {
  padding: 1rem 1.5rem;
  cursor: pointer;
  position: relative;
  background-color: #eee;
  font-weight: bold;
}

.faq-question::after {
  content: "⛨";
  position: absolute;
  right: 20px;
  font-size: 1.3rem;
  color: rgb(70, 116, 252);
  transition: transform 0.3s ease;
}

.faq.open .faq-question::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #fdfdfd;
  padding: 0 1.5rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq.open .faq-answer {
  max-height: 350px;
  padding: 1rem 1.5rem;
}

@media (min-width: 768px) {  
  .container {
    width: 80%;
  }
}
/*fin de preguntas frequentes*/


/*newsletter*/

.news-section {
  background-color: #c7dbf0;
  padding: 60px 20px;
  font-family: "Josefin Sans", sans-serif;
}

.container-news {
  max-width: 800px;
  margin: 0 auto;
}

.section-title-news {
  font-size: 32px;
  color: #8821c8; 
  text-shadow: 1px 1px #39ccfd;
  text-align: center;
  margin-bottom: 40px;
  font-family: "Roboto", sans-serif;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.news-image {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background-color: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 1;
  min-width: 250px;
}

.news-title {
  font-size: 20px;
  color: #2a75c4;
  margin-bottom: 8px;
}

.news-text {
  font-size: 17px;
  color: #374151;
} 
/*newslatter end*/

/* Responsive */
@media (max-width: 600px) {
  .news-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .news-content {
    min-width: 100%;
  }

  .news-image {
    margin-bottom: 15px;
  }
}



/*map*/
.footer-map {
  width: 200px; /* default for desktop */
  margin: auto;
}

/* Expand map on mobile screens */
@media (max-width: 768px) {
  .footer-map {
      width: 100%;
  }

  .footer-map iframe {
      width: 100%;
      height: 250px; 
  }
}

/**new footer*/
/* General Footer Styling */
.site-footer {
  background-color: #2a75c4;
  padding: 55px 20px;
  color: #faf1f1;
  font-family: "Josefin Sans", sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

/* Each Section */
.footer-about,
.footer-links,
.footer-contact,
.footer-map {
flex: 1 1 200px; /* Grow/shrink with a base of 200px */
}

/* Footer Links - Align h4 and Icons */
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-links h4 {
  margin-bottom: 10px;
  font-size: 17px;
}

.footer-links .social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer-links .social-icons img {
  width: 50px;
  transition: transform 0.2s ease;
}

.footer-links .social-icons img:hover {
  transform: scale(1.1);
}

/* Profile Image Styling */
.footer-links .profile-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid #000000; /* Optional border */
}


/* Map Styling */
.footer-map {
  align-self: flex-start;
  text-align: right;
}

.footer-map iframe {
  width: 100%;
  max-width: 300px;
  height: 190px;
  border: 0;
  border-radius: 8px;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #f1f1f1;
  border-top: 1px solid #ccc;
  padding-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px; /* reduced gap between sections */
}
  
  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-map {
    margin-bottom: 10px; /* tighter vertical spacing */
  }

.footer-map {
  text-align: center;
  margin-top: 10px; /* less top margin */
}

.footer-map iframe {
  max-width: 100%;
  height: 180px; /* slight height adjustment */
  }

.footer-links .social-icons {
  justify-content: center;
  gap: 10px;
  }

.footer-bottom {
  margin-top: 20px;
  padding-top: 10px;
  }
  
}
/*space for the text footer fix latter*/
.text-footer{
  margin-bottom: 10px;
}

.logo-banner:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}
