* {
    box-sizing: border-box;
}

a{
    text-decoration: none;
    color: inherit;
}

a:visited{
    text-decoration: none;
    color: inherit;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    width: 75%;

}

.pages-header {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    width: 75%;
    overflow: hidden;
}

body {
    font-family: Poppins, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container-top-header,
.container-bottom-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo {
    text-align: center;
    font-size: clamp(2rem, 2.5vw, 5rem);
    font-weight: bold;
    color: #4285F4;
    cursor: pointer;
}

.headerIcon {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.header .profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid white;
    transition: border 0.5s ease;
}



.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.search-container {
    text-align: center;
    width: clamp(16rem, 35vw, 50rem);
    padding: 0px 12px;
}

.moreApp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.moreApp:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.profile:hover {
    border: 3px solid rgba(0, 0, 0, 0.2);
}

.profile-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    transition: border 0.3s ease;
}

.profile:hover {
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.profile-info {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-90%);
    background-color: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px;
    width: 200px;
    height: 50px;
    text-align: start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.profile-container:hover .profile-info {
    opacity: 1;
    visibility: visible;
}

.profile-name {
    font-size: 12px;
    font-weight: bold;
    color: #202124;
    margin: 0 0 4px 0;
}

.profile-email {
    font-size: 12px;
    color: #5f6368;
    margin: 0;
}

.svgMoreApp {
    width: 24px;
    height: 24px;
    fill: black;
    transition: fill 0.3s ease;
}

.searchBar {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-box {
    width: 100%;
    padding: 12px 25px;
    padding-right: 110px;
    font-size: 16px;
    border: 1px solid #b4b6ba;
    border-radius: 24px;
    outline: none;
    box-shadow: none;
}

.voice-search-icon,
.image-search-icon,
.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    fill: gray;
}

.voice-search-icon {
    right: 70px;
    margin-right: 10px;
}

.image-search-icon {
    right: 40px;
    margin-right: 10px;
}

.search-icon {
    right: 18px;
    fill: #4285f4;
}

.logo span:nth-child(2), .logo span:nth-child(6), .google-red {
    color: #EA4335;
}

.logo span:nth-child(3), .google-yellow {
    color: #FBBC05;
}

.logo span:nth-child(4), .google-blue{
    color: #4285F4;
}

.logo span:nth-child(5), .google-green{
    color: #34A853;
}


.container-bottom-header {
    overflow-x: hidden;
    padding-top: 1.5rem;
}

.pages-header {
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* suaviza el scroll en móviles */
    scrollbar-width: none; /* Firefox */
}

.pages-header::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Edge */
}

.pages-header a {
    color: #80868b;
    padding-bottom: 10px;
}

.title-cv.active {
    color: black;
    border-bottom: 2px solid black;
}

.title-cv {
    text-decoration: none;
    padding: 0 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.title-cv:hover {
    color: black;
}


hr {
    margin-top: 0;
    background-color: #ced0d4;
    height: 1px;
    border: none;
    width: 100%;
}


.search-results {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    margin: 35px 10% 0 10%;
    padding: 0 20px;
}

.results-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-card {
    margin-top: 1rem;
    background-color: #fff;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    border-radius: 50%;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 1px solid #dadce0;
}

.wiki {
    cursor: pointer;
}

.tech-img{
    width: 43px;
    margin-bottom: 5px;
    border-radius: 5px;
    height: 40px;
    margin-right: 12px;
    
}

.card-info {
    flex: 1;
}

.card-url {
    font-size: 14px;
    color: #5f6368;
    margin: 0;
}

.card-title {
    font-size: 16px;
    margin: 4px 0;
    text-decoration: none;
}

.card-title2 {
    font-size: 22px;
    color: #1a0dab;
    margin: 4px 0;
    text-decoration: none;
}

.card-title3 {
    font-size: 30px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 25px;
    text-decoration: none;
}

.card-title2:hover {
    text-decoration: underline;
    cursor: pointer;
}

.card-description {
    font-size: 16px;
    width: 85%;
    color: #4d5156;
    margin: 0;
}

.card-description1 {
    font-size: 16px;
    margin-bottom: 15px;
    width: 85%;
    color: black;
}

.image-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 10px;
  background-color: #f7f7f7;
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.2);
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 0 0.5rem;
  border-radius: 50%;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background-color: rgba(0,0,0,0.5);
}


.wikipedia-column {
    display: flex;
    flex-direction: row;
    background-color: #fff;
    margin-left: 15px;
    border-left: 1px solid #ced0d4;
    padding: 16px;
    width: 60%;
}


.wikipedia-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wikipedia-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0;
}

.wiki-title {
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

.wikipedia-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #4d5156;
    margin: 0;
}

.subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inline-svg {
    width: 20px; 
    height: 20px;
    fill: black; 
    vertical-align: middle;
}

.wikipedia-image {
    width: 100%;
    border-radius: 8px;
}

.wikipedia-description {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: #4d5156;
    border-top: 1px solid #dadce0;
    padding-top: 20px;
}

.wikipedia-link {
    font-size: 14px;
    color: #1a0dab;
    text-decoration: none;
}

.wikipedia-link:hover {
    text-decoration: underline;
}

.info-wiki {
    margin: 0px;
    font-family: Arial, Helvetica, sans-serif;
}

.info-wiki-titulo {
    font-weight: bold;
}

.text-decoration-none {
    text-decoration: none;
    color: #4285F4;
}

.footer-logo-pages {
    display: flex;
    font-size: clamp(2rem, 5vw, 3rem);
    width: 50%;
}

.logo-footer {
    display: grid;
    margin-top: 7rem;
    grid-template-columns: 1.3fr 1fr;
    margin: 5% 10% 0 10%;
    padding: 0 20px;
}

.logo-center {
    display: flex;
    align-items: center;
    margin-left: 10%;
}

.number-one {
    color: black !important;
}

.footer-numbers, .before-text, .after-text {
    color: #4285F4;
    font-size: clamp(0.64rem, 1.6vw, 0.8rem);
    font-family: Arial, Helvetica, sans-serif;
    padding-bottom: 4rem;
}

.before-sign, .after-sign {
    margin-right: 15px;
    margin-left: 15px;
    font-size: 20px;
    font-weight: bold;
    padding: 0px;
    color: #4285f4;
}

.letter-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.letter-number:hover {
    cursor: pointer;
}

.c-letter, .before-sign, .next-page {
    cursor: pointer;
}

.letter-number:hover .footer-numbers {
    cursor: pointer;
    text-decoration: underline;
}

.after-sign:hover ~ .after-text,
.before-sign:hover ~ .before-text,
.before-text:hover {
    text-decoration: underline;
    cursor: pointer;
}

.underline {
    text-decoration: underline;
    cursor: pointer;
}

.footer-cv-container {
    position: absolute;
    width: 100%;
    background-color: var(--footer-color);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px 150px;
    padding: 0px 8px 12px;
    color: var(--secondary-color);
}

.pb-2 {
    padding-bottom: .5rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
    margin: 0px 50px;
}


.country {
    color: #5f6368;
    margin-right: 15px;
}

.country-container{
    border-right: 1px solid #dadce0;;
    margin-right: 15px;
    
}

.fw-bold {
    color: #70757A;
    font-weight: bold;
    cursor: pointer;
}

.text-primary {
    margin: auto auto auto 8px;
    color: #1a0dab;
    cursor: pointer;
}

/* RESPONSIVE DESIGN */

/* === TABLET (hasta 1024px) === */
@media (max-width: 1024px) {

    .search-results {
        grid-template-columns: 1fr;
        margin: 20px 5%;
        padding: 0 10px;
    }

    .wikipedia-column {
        width: 100%;
        margin-top: 25px;
        margin-left: 0;
        border-left: none;
        padding: 10px 0;
    }

    .logo-footer {
        grid-template-columns: 1fr;
        justify-items: center;   /* centra el contenido dentro del grid */
        text-align: center;
        margin: 60px auto 0 auto; /* centra horizontalmente */
        padding: 0;
        width: 100%;
    }

    .logo-center {
        margin-left: 0;
    }

    .footer-logo-pages {
        justify-content: center;
        width: 100%;
    }

    .search-container {
        width: 80%;
    }

    .profile-info {
        left: 60%;
        transform: translateX(-50%);
    }
}


/* === CELULAR (hasta 768px) === */
@media (max-width: 768px) {

    .header-left {
        flex-direction: column;
        align-items:center;
        width: 100%;
    }

    .header-left .logo {
        font-size: 2.3rem;
        margin-bottom: 20px;
    }

    .search-container{
        padding-left: 0;
    }

    .moreApp, .profile-container{
        display: none;
    }

    .profile {
        width: 100%;
    }
    .search-results {
        grid-template-columns: 1fr;
        margin: 15px 5%;
        padding: 0;
    }

    .container-bottom-header{
        padding: 0;
    }

    .results-column, .wikipedia-column {
        width: 100%;
        margin: 0;
    }

    .card-description {
        width: 100%;
        font-size: 14px;
    }

    .wikipedia-column {
        margin-top: 25px;
    }

    .wikipedia-description {
        font-size: 16px;
    }

    .footer-cv-container {
        font-size: 14px;
        margin: 0;
        padding: 8px;
    }


    .profile-info {
        left: 50%;
        transform: translateX(-50%);
        width: 160px;
    }
}


@media (max-width: 480px) {

    .logo {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }

    .search-container {
        width: 95%;
    }

    .search-box {
        font-size: 13px;
        padding: 8px 16px;
    }

    .profile {
        width: 32px;
        height: 32px;
    }

    .wikipedia-title {
        font-size: 18px;
    }

    .card-title2 {
        font-size: 18px;
    }

    .card-description {
        font-size: 13px;
    }

    .footer-numbers {
        font-size: 0.6rem;
    }
}
