/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.clinicas-container {
  display: flex;
  width: 100%;
  height: 100vh;
}

.clinica {
  flex: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: flex 0.3s ease;
}

.clinica:hover {
    flex: 1.1;
}

.clinica-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.3s ease;
}

.clinica:hover .clinica-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.clinica-content {
  position: relative;
  z-index: 2;
  padding: 20px;
}

.clinica-content h2 {
  font-size: 34px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.clinica-content .info {
  font-size: 16px;
  line-height: 1.5;
}

.clinica-content .info b {
    display: block;
    margin-bottom: 10px;
}

.clinica-content .info button {
    padding: 10px 20px;
    margin: 5px;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    display: inline-block;
    background: none;
    border: solid 1px #FFF;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

.clinica-content .info button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.clinica-content .info button.site {
    background: rgb(97, 33, 53);
    border-color: rgb(145, 36, 85);
}

.clinica-content .info button.site:hover {
    background: rgb(145, 36, 85);
}

.clinica-content .info button.rsul {
    background: rgb(66, 142, 82);
    border-color: rgb(46, 108, 82);
}

.clinica-content .info button.rsul:hover {
    background: rgb(85, 178, 91);
}

/* Simple responsive for column stacking */
@media (max-width: 768px) {
  .clinicas-container {
    flex-direction: column;
    height: auto;
    overflow: auto;
  }
  .clinica {
    height: 100vh; /* Each section takes full viewport height on mobile */
  }
}

/* --- Desktop Intro Animation --- */

@media (min-width: 993px) {
    #desktop-intro {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #451323;
        z-index: 10000;
        display: flex;
        justify-content: center;
        align-items: center;
        animation: intro-bg-fade-out 1s 4s forwards;
    }

    .intro-logo-desktop {
        opacity: 0;
        animation: logo-fade-in-out 4s forwards;
    }

    #clinicas-desktop {
        opacity: 0;
        animation: container-fade-in 1s 4s forwards;
    }

    .clinica-desktop {
        opacity: 0;
    }

    #clinicas-desktop .clinica-desktop:nth-child(1) {
        animation: element-fade-in 0.7s 4.5s forwards;
    }

    #clinicas-desktop .clinica-desktop:nth-child(2) {
        animation: element-fade-in 0.7s 5.0s forwards;
    }

    #clinicas-desktop .clinica-desktop:nth-child(3) {
        animation: element-fade-in 0.7s 5.5s forwards;
    }

    @keyframes logo-fade-in-out {
        0% { opacity: 0; }
        25% { opacity: 1; }
        75% { opacity: 1; }
        100% { opacity: 0; }
    }

    @keyframes intro-bg-fade-out {
        to {
            opacity: 0;
            visibility: hidden;
        }
    }

    @keyframes container-fade-in {
        to {
            opacity: 1;
        }
    }

    @keyframes element-fade-in {
        to {
            opacity: 1;
        }
    }
}