/*=============== GOOGLE LETRAS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  /*========== COLORES ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(355, 68%, 54%);
  --first-color-lighten: hsl(0, 3%, 14%);

  --title-color1:hsl(240, 3%, 12%);
  --title-color: hsl(0, 0%, 100%);
  --text-color: hsl(220, 12%, 45%);
  --body-color: hsl(0, 0%, 100%);
  /*========== AUTOGRAFIA LETRAS==========*/
 
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  
}

body{
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;


  


}







ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.logo-img {
    height: 50px;
    margin-right: 8px; 
    vertical-align: middle; 
  }
/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 8px hsla(220, 68%, 12%, 0.1);
  background-color: var(--body-color);
  z-index: var(--z-fixed);
}




/*=============== NAV ===============*/

.nav {
  height: var(--header-height);
}
.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.3s;
  
}
.nav__logo i {
  font-size: 1.25rem;
}
.nav__logo:hover {
  color: var(--first-color);
}
.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}
.nav__toggle-menu, .nav__toggle-close {
  font-size: 1.25rem;
  color: var(--title-color);
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0;
  cursor: pointer;
  transition: opacity 0.1s, transform 0.4s;
}
.nav__toggle-close {
  opacity: 0;
}
@media screen and (max-width: 1118px) {
  .nav__menu {
    background-color: var(--body-color);
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    padding-block: 1.5rem 4rem;
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0.5rem;
  }
  .nav__menu::-webkit-scrollbar-thumb {
    background-color: hsl(220, 12%, 70%);
  }
}
.nav__link {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}
.nav__link:hover {
  background-color: var(--first-color-lighten);
}

.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}


.show-icon .nav__toggle-menu {
  opacity: 0;
  transform: rotate(90deg);
}

.show-icon .nav__toggle-close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__button {
  cursor: pointer;
}
.dropdown__arrow {
  font-size: 1.5rem;
  font-weight: initial;
  transition: transform 0.4s;
}
.dropdown__content, .dropdown__group, .dropdown__list {
  display: grid;
}
.dropdown__container {
  background-color: var(--first-color-lighten);
  height: 0;
  overflow: hidden;
  transition: height 0.4s;
}
.dropdown__content {
  row-gap: 1.75rem;
}
.dropdown__group {
  padding-left: 2.5rem;
  row-gap: 0.5rem;
}
.dropdown__group:first-child {
  margin-top: 1.25rem;
}
.dropdown__group:last-child {
  margin-bottom: 1.25rem;
}
.dropdown__icon i {
  font-size: 1.25rem;
  color: var(--first-color);
}
.dropdown__title {
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.dropdown__list {
  row-gap: 0.25rem;
}
.dropdown__link {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  transition: color 0.3s;
}
.dropdown__link:hover {
  color: var(--title-color);
}


.show-dropdown .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== BREAKPOINTS ===============*/

@media screen and (max-width: 300px) {
  .dropdown__group {
    padding-left: 1.5rem;
  }
}

@media screen and (min-width: 1118px) {

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
    
  
  }
  .nav__toggle {
    display: none;
    
  }
  .nav__list {
    display: flex;
    column-gap: 2rem;
    height: 100%;
  padding-left: 11rem; 

    
  }
  .nav li {
    display: flex;
  }
  .nav__link {
    padding: 0;
  }
  .nav__link:hover {
    background-color: initial;
   
  }
  /* Dropdown */
  .dropdown__button {
    column-gap: 0.25rem;
    pointer-events: none;
    
  }
  .dropdown__container {
    height: max-content;
    position: absolute;
    left: 0;
    right: 0;
    top: 5.5rem;
    background-color: var(--body-color);
    box-shadow: 0 6px 8px hsla(220, 68%, 12%, 0.05);
    pointer-events: none;
    opacity: 0;
    transition: top 0.4s, opacity 0.3s;
  }
  .dropdown__content {
    grid-template-columns: repeat(4, max-content);
    column-gap: 6rem;
    max-width: 1120px;
    margin-inline: auto;
  }
  .dropdown__group {
    padding: 4rem 0;
    align-content: baseline;
    row-gap: 1.25rem;
  }
  .dropdown__group:first-child, .dropdown__group:last-child {
    margin: 0;
  }
  .dropdown__list {
    row-gap: 0.75rem;
  }
  .dropdown__icon {
    width: 60px;
    height: 60px;
    background-color: var(--first-color-lighten);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
  }
  .dropdown__icon i {
    font-size: 2rem;
  }
  .dropdown__title {
    font-size: var(--normal-font-size);
  }
  .dropdown__link {
    font-size: var(--small-font-size);
  }
  .dropdown__link:hover {
    color: var(--first-color);
  }
  .dropdown__item {
    cursor: pointer;
  }
  .dropdown__item:hover .dropdown__arrow {
    transform: rotate(180deg);
  }
  .dropdown__item:hover > .dropdown__container {
    top: 5.5rem;
    opacity: 1;
    pointer-events: initial;
    cursor: initial;
  }
}
@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }
}


#toggle {
    position: absolute;
    top: -100px;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    nav .list {
        flex-wrap: wrap;
        justify-content: center;
    }

    body {
        padding-top: 50px;
    }
}

section {
    padding: 80px 13% 70px;
}




nav .logo-img {
    height: 50px;
    width: auto;
}

.submenu1 {
    background-color: rgb(42, 45, 51);
}
.especialidades{
    background-color:rgb(42, 45, 51);
}
.styled-table {
    border-collapse: collapse;
    margin: 50px auto;
    margin-bottom: 30px;
    font-size: 1em;
    font-family: Arial, Helvetica, sans-serif;
    min-width: 500px;
    box-shadow: 0 0 20px rgb(144, 146, 148);
    width: 50%;
    
}


  .header {
    background-color: #7A1F1F;
  }
  
/*FOOTER */
.footer-cetis155 {
  background-color: #2d2f36;
  color: #e0e0e0;
  padding: 60px 0 30px;
  font-family: "Montserrat", sans-serif;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  opacity: 0;
  transform: translateY(20px);
}

.footer-logo span {
  color: #b44343;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0;
}

.footer-links li {
  opacity: 0;
  transform: translateY(20px);
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ff4b4b;
  ;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.social-icons a:hover {
  background-color: rgba(74, 144, 226, 0.2);
  color: #e24a4a;
  transform: translateY(-3px);
}

.copyright {
  font-size: 14px;
  color: #888;
  opacity: 0;
  transform: translateY(20px);
}

.box {
  opacity: 0;
  transform: translateY(50px);
}

.overlay {
  transform: translateY(20px);
  opacity: 0;
}



@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}



.contenedor {
  display: flex;
  align-items: center;
  gap: 100px;
  
}





/* Versión móvil */

 @media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 70px;
    width: 100%;
    max-height: 0; 
    overflow: hidden;
    background-color: #7A1F1F;
    transition: max-height 0.3s ease-in-out;
  }

  .show-menu {
    max-height: 500px; 
    overflow-y: auto;
  }

  

  .dropdown__container {
    background-color: #fdfdfd;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  
  .dropdown-open .dropdown__container {
    height: auto;
  }
  
  .dropdown__content {
    padding: 0 20px;
  }
  
  .dropdown__group {
    padding: 15px 0;
  }
  
  .dropdown__title {
    color: #7A1F1F;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
  }
  
  .dropdown__link {
    color: #333;
    padding: 8px 15px;
    display: block;
  }
}































@media screen and (max-width: 1118px) {
  .nav__list {
    flex-direction: column;
  }
  

}

.textogaleria{
    padding: 120px;
    color: #b44343;

    text-align: center;
}













.preview-box {
    display: none;
    position: fixed; 
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(248, 239, 239, 0.096);
    backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.685);
    text-align: center;
    z-index: 1000;
    width: 85%;
    max-width: 600px;
    transition: all 0.3s ease-in-out;
}

.preview-box img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 12px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.preview-box img:hover {
    transform: scale(1.02);
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, color 0.3s ease;
}

.close:hover {
    transform: scale(1.2);
    color: #fff;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 32px;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    transform: scale(1.2);
}
















 .floating-windows {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1000;
        }
        
        .main-circle-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #7A1F1F;
            color: white;
            border: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.3s ease;
        }
        
        .main-circle-btn:hover {
            background: #7A1F1F;
            transform: scale(1.1);
        }
        
        .circle-options {
            position: absolute;
            bottom: 60px;
            right: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }
        
        .circle-option {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            text-decoration: none;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transform: scale(0);
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        .circle-option:hover {
            transform: scale(1.1) !important;
        }
        
        .whatsapp { background: #25D366; }
        .instagram { background: #7A1F1F; }
        .facebook { background: #1877F2; }
        .twitter { background: #1DA1F2; }
        .tiktok { background: #000000; }
        
        /* Animación cuando está abierto */
        .show-circle-options .circle-option {
            pointer-events: auto;
            transform: scale(1);
            opacity: 1;
        }
        
        /* Animaciones individuales con delays */
        .show-circle-options .circle-option:nth-child(1) {
            transition-delay: 0.1s;
        }
        .show-circle-options .circle-option:nth-child(2) {
            transition-delay: 0.2s;
        }
        .show-circle-options .circle-option:nth-child(3) {
            transition-delay: 0.3s;
        }
        .show-circle-options .circle-option:nth-child(4) {
            transition-delay: 0.4s;
        }
        .show-circle-options .circle-option:nth-child(5) {
            transition-delay: 0.5s;
        }



        .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.column img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    object-fit: cover;
    aspect-ratio: 4/3; 
}

.column img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


.preview-box {
    position: fixed;
    
}