a:link {
    color: #a4dcfb;
    text-decoration: none;
}

a:visited {
    color: #a4dcfb;
    text-decoration: none;
}

a:hover {
    color: aliceblue;
    text-decoration: underline;
}

body {
    text-align: center;
}

div {
    text-align: center;
}

div.cardColor {
    background-color: #808080;
    opacity: 0.9;
}

@media screen and (max-width: 1200px) {
    div.col-s-1-android {
        padding: 5%;
    }
    div.col-s-1-iphone {
        padding: 5%;
    }
}

@media screen and (min-width: 1200px) {
    div.col-s-1-android {
        padding-left: 100%;
    }
    div.col-s-1-iphone {
        padding-left: 50%;
    }
}

div.width90 {
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
}

#fotoPerfil{
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    width: 10%;
}

#fotoPerfil:hover{
    opacity: 0.7;
}

.modal {
    display: none;
    position: fixed;
    z-index: 11;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,1);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}  

hr.solid {
    border-top: 3px solid #f5f5f5;
}

iframe.description {
    display: none;
    height: 400px;
    width: 400px;
}

iframe.tiptext {
    cursor: pointer;
}

p {
    text-align: center;
}

p.width90 {
    margin-left: 5%;
    width: 90%;
}




/* Style the tab */
.tab {
    float: left;
    /* border: 1px solid #ccc; */
    background-color: #f1f1f1;
    width: 25%;
    /* height: 300px; */
  }
  
  /* Style the buttons that are used to open the tab content */
  .tab button {
    display: block;
    background-color: inherit;
    color: black;
    padding: 22px 16px;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #ddd;
  }
  
  /* Create an active/current "tab button" class */
  .tab button.active {
    background-color: #ccc;
  }
  
  /* Style the tab content */
  .tabcontent {
    float: left;
    padding: 0px 12px;
    border: 1px solid #ccc;
    background-color: #808080;
    width: 70%;
    border-left: none;
    /* height: 300px; */
    display: none;
  }

/* Teléfono fijo — solo móvil */
.phone-sticky {
    display: none;
}

@media (max-width: 768px) {
    /* Phone como fondo centrado */
    .phone-sticky {
        display: flex;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.15);
        z-index: 0;
        opacity: 0.4;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .phone-sticky.hidden {
        opacity: 0;
    }

    /* Secciones semi-transparentes para que el phone se vea de fondo */
    .snap-section {
        background: rgba(52, 61, 70, 0.78);
        position: relative;
        z-index: 1;
    }

}

/* iPhone 15 Pro mockup */
.iphone-modern {
    position: relative;
    width: 272px;
    height: 560px;
    background: linear-gradient(160deg, #2e2e2e 0%, #1a1a1a 100%);
    border-radius: 50px;
    box-shadow:
        inset 0 0 0 1.5px #4a4a4a,
        inset 0 0 0 3px #141414,
        0 30px 80px rgba(0,0,0,0.7),
        0 0 0 1px rgba(255,255,255,0.06);
    flex-shrink: 0;
    overflow: visible;
}

/* Power button — right */
.iphone-modern::before {
    content: '';
    position: absolute;
    right: -4px;
    top: 140px;
    width: 4px;
    height: 72px;
    background: #2e2e2e;
    border-radius: 0 3px 3px 0;
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.1);
}

/* Volume + action buttons — left */
.iphone-modern::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 100px;
    width: 4px;
    height: 28px;
    background: #2e2e2e;
    border-radius: 3px 0 0 3px;
    box-shadow:
        0 44px 0 #2e2e2e,
        0 80px 0 #2e2e2e,
        inset 1px 0 0 rgba(255,255,255,0.1);
}

.iphone-modern-screen {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 42px;
    overflow: hidden;
    background: #000;
}

.iphone-modern-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.iphone-modern-island {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

/* Camera dot inside island */
.iphone-modern-island::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
    box-shadow: 0 0 0 2px #0d0d0d, 0 0 4px rgba(100,180,255,0.3);
}

.iphone-modern-home {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 5px;
    background: rgba(255,255,255,0.35);
    border-radius: 3px;
    z-index: 10;
}

/* Scroll snap */
html {
    height: 100%;
}

.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.snap-section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
    box-sizing: border-box;
}

.snap-section--exp {
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 40px;
    overflow: visible;
}

/* Sección 4: footer (creada por JS en móvil) */
.snap-section--footer {
    height: 100vh;
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.snap-inner {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.snap-inner--col {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* Sección 3 header */
.exp-section-header {
    margin-bottom: 16px;
}

.exp-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: aliceblue;
    margin: 0 0 8px;
    text-align: center;
}

/* Floating language button */
.lang-btn-single {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #4c51bf;
    border: none;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 24px;
    cursor: pointer;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 14px rgba(0,0,0,0.5);
    transition: background 0.2s, transform 0.15s;
}

.lang-btn-single:hover {
    background: #4338ca;
    transform: scale(1.05);
}

/* Job Experience Cards */
.job-cards-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
}

.job-cards-row .job-card {
    flex: 1;
    margin: 0;
}

@media screen and (max-width: 900px) {
    .job-cards-row {
        flex-direction: column;
    }
    .job-card {
        height: auto !important;
        min-height: 480px;
    }
}

.job-card {
    perspective: 1200px;
    height: 480px;
    text-align: left;
    cursor: pointer;
}

.job-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.job-card:hover .job-card-inner {
    transform: rotateY(180deg);
}

.job-card-front,
.job-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    background-color: #4a5568;
    display: flex;
    flex-direction: column;
}

.job-card-back {
    transform: rotateY(180deg);
}

.job-card-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.job-initial-badge {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.job-logo-badge {
    height: 44px;
    max-width: 120px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.job-company-name {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.job-company-name a {
    color: rgba(255,255,255,0.9) !important;
}

.job-company-name a:hover {
    color: white !important;
    text-decoration: underline;
}

.job-card-content {
    padding: 16px 24px;
    flex: 1;
    overflow-y: auto;
}

.job-front-desc {
    color: #e2e8f0;
    line-height: 1.75;
    text-align: left;
    font-size: 0.95rem;
    margin: 0;
}

.static-info-card {
    flex: 1;
    background-color: #4a5568;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cert-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    color: #e2e8f0;
}

.cert-list li {
    padding: 3px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

.job-role {
    color: #cbd5e0;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-align: left;
}

.job-role a {
    color: #cbd5e0 !important;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.job-tag {
    background-color: #4c51bf;
    color: white;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.job-bullet {
    text-align: left !important;
    color: #e2e8f0;
    padding: 0 0 8px 0;
    margin: 0;
    line-height: 1.5;
}

.job-links {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.job-link-btn {
    display: inline-block;
    padding: 6px 18px;
    border: 2px solid #a4dcfb;
    border-radius: 8px;
    color: #a4dcfb !important;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s;
}

.job-link-btn:hover {
    background: rgba(164, 220, 251, 0.1);
    text-decoration: none !important;
}

/* Carousel dots */
.carousel-dots {
    display: none;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4b5563;
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}

.carousel-dot.active {
    background: #4c51bf;
    transform: scale(1.3);
}

.card-back-hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 8px 0 14px;
}

/* Skills pills */
.skills-group {
    margin-bottom: 24px;
}

.skills-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: left;
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.88rem;
    color: #e2e8f0;
    white-space: nowrap;
}

.skill-pill a {
    color: #e2e8f0 !important;
    text-decoration: none;
}

.skill-pill a:hover {
    color: white !important;
    text-decoration: underline;
}

.skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Footer */
.site-footer {
    display: flex;
    flex-direction: row;
    gap: 48px;
    background-color: #252d36;
    padding: 40px 5%;
    margin-top: 24px;
    text-align: left;
    align-items: flex-start;
    border-radius: 16px;
}

.footer-col {
    flex: 1;
}

.footer-brand {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-brand #fotoPerfil {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s;
    object-fit: cover;
}

.footer-brand #fotoPerfil:hover {
    opacity: 0.7;
}

.footer-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    text-align: left;
}

.footer-copy {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    text-align: left;
}

.footer-heading {
    color: #f1f5f9;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 14px 0;
    text-align: left;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-list li {
    text-align: left;
}

.footer-list a {
    color: #94a3b8 !important;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: #e2e8f0 !important;
    text-decoration: none;
}

.footer-icon-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.footer-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-icon-link:hover .footer-icon {
    opacity: 1;
}

@media screen and (max-width: 700px) {
    .site-footer {
        flex-direction: column;
        gap: 32px;
    }
    .footer-brand {
        flex: unset;
        align-items: center;
        width: 100%;
    }
    .footer-col {
        width: 100%;
    }
}

/* ── Responsive: móvil ── */
@media screen and (max-width: 768px) {


    /* Secciones: altura libre en móvil para no cortar contenido apilado */
    .snap-section {
        height: auto !important;
        min-height: 100vh;
        padding: 32px 4%;
        justify-content: center;
        align-items: center;
    }

    /* snap-inner en columna, centrado */
    .snap-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    /* Sección 1: cards apiladas */
    .sec1-cards {
        flex-direction: column !important;
        width: 100%;
    }

    /* Teléfono oculto en móvil — reemplazado por fondo */
    .sec1-phone {
        display: none !important;
    }

    /* Carousel horizontal en móvil */
    #expLab {
        flex-direction: row !important;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 24px;
        width: 100%;
        margin-bottom: 16px !important;
        padding: 0 4px;
    }

    #expLab::-webkit-scrollbar {
        display: none;
    }

    #expLab .job-card {
        flex: none !important;
        width: 100%;
        min-width: 100%;
        height: 480px;
        scroll-snap-align: start;
    }

    /* Carousel Perfil + Skills */
    #perfilCarousel {
        flex-direction: row !important;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 24px;
        width: 100%;
        padding: 0 4px;
        align-items: stretch;
    }

    #perfilCarousel::-webkit-scrollbar { display: none; }

    #perfilCarousel .static-info-card {
        flex: none !important;
        width: 100%;
        min-width: 100%;
        height: 480px;
        scroll-snap-align: start;
    }

    /* Carousel Educación + Certificaciones */
    #eduProf {
        flex-direction: row !important;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 24px;
        width: 100%;
        padding: 0 4px;
    }

    #eduProf::-webkit-scrollbar { display: none; }

    #eduProf .static-info-card {
        flex: none !important;
        width: 100%;
        min-width: 100%;
        height: 480px;
        scroll-snap-align: start;
    }

    .static-info-card {
        width: 100%;
        flex: none;
    }

    /* Dots visibles en móvil */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 8px 0 4px;
    }

}