/* ESTILOS DE MI PAGINA WEB */

html {
    scroll-behavior: smooth;
}


body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden !important;
    background: linear-gradient(to top, #333, #5c5c5c);
    color: #fff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../Imagenes/Andorra/JhonAndorra.jpg') center center / cover no-repeat;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

header {
    position: relative;
    background: transparent;
    min-height: 100vh;
    margin-bottom: 5em;
}

header h1 {
    display: flex;
    color: #ffffff;
    justify-content: center;
    position: absolute;
    top: 65%;
    width: 100%;
    font-size: 5vw;
    text-shadow: #1a1a1a 0.03em 0.03em;
}

.content-container {
    padding: 0 1rem 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns:repeat(auto-fill, 30em);
    grid-auto-rows: minmax(100px,30em) ;
    gap: 10em;
    justify-content: center;
}
.grid-item {
    background-size: cover;
    position: relative;
    object-fit: cover;

}

.grid-item a {
    height: 100%;
    width: 100%;
    text-decoration: none;
    text-align: center ;
    display: inline-block;
    transition: transform 0.3s ease;
    
}

.grid-item p,
.texto-superpuesto {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    margin: 0;
    bottom: 0;
    width: calc(100% - 0.5rem);
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 0px 0px 20px 20px;
    font-size: 1.4vw;
    text-align: center;
    padding: 0.6rem 0.5rem;
    box-sizing: border-box;
}


.grid-item img,
.card-disabled img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0px 0px;
}

.card-disabled {
    position: relative;
    display: block;
    height: 100%;
}


@media (max-width: 900px) {
    .grid-container {
        grid-template-columns:repeat(auto-fill, 20em);
        grid-auto-rows: minmax(100px,20em) ;
        gap: 5em;
    }

    .grid-item p,
    .texto-superpuesto {
        font-size: 5vw;
    }


}

.grid-item a:hover {
    transform: scale(1.1);
}



section {
    display: flex;

    height: 50em;
    margin-top: 20px;
    margin-bottom: 20px;
    
  }
  section img{
    width: 0px;
    flex-grow: 1;
    object-fit: cover;
    opacity: .8;
    transition: .5s ease;
  }
  section img:hover{
    cursor: crosshair;
    width: 60%;
    opacity: 1;
    filter: contrast(120%);
  }

.Blog-seccion {
    padding: 40px;
    background-color: #1a1a1a;
}

.blog-entrada {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #444;
    background-color: #333;
}
  
  

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    background: rgba(15, 15, 15, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.redes-sociales h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #ffffff;
}

.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
}

.social-list a {
    color: #ffffff;
    font-size: 3.5rem;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
    display: inline-block;
    text-decoration: none;
}

.social-list a:hover {
    color: #007bff;
    transform: scale(1.2);
}

.contact-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 4rem;
}

.contact-card {
    width: min(100%, 700px);
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
}

.contact-card h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {

    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-sizing: border-box;
    font: inherit;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.btn-submit {
    margin-top: 0.5rem;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.25);
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-success {
    background: rgba(40, 167, 69, 0.18);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #d9ffe6;
}

.alert-error {
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ffdfe3;
}

.error-message {
    color: #ff9ca5;
    font-size: 0.9rem;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 2rem;
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.topbar__brand a,
.topbar__nav a,
.topbar__back {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.topbar__brand a {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar__nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.topbar__nav a {
    font-size: 0.95rem;
    opacity: 0.9;
}

.topbar__nav a:hover,
.topbar__brand a:hover,
.topbar__back:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.topbar__back {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.7rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
}

@media (max-width: 700px) {
    .topbar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem;
    }

    .topbar__brand,
    .topbar__nav,
    .topbar__back {
        width: 100%;
        text-align: center;
    }
}

.nav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
}

.cv-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.eyebrow {
    margin: 0 0 0.3rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8d4ff;
    font-weight: 700;
}

.cv-header h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
}

.cv-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d6efd, #0056d6);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 25px rgba(13, 110, 253, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(13, 110, 253, 0.36);
}

.cv-shell {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 0.5rem;
    box-shadow: 0 28px 45px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.cv-frame {
    display: block;
    width: 100%;
    min-height: 1200px;
    border: none;
    background: #ffffff;
    border-radius: 16px;
}

.cv-frame::-webkit-scrollbar {
    display: none;
}

object.cv-frame {
    overflow: hidden;
}

@media (max-width: 720px) {
    .cv-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-download {
        width: 100%;
        justify-content: center;
    }
}

.footer-meta {
    text-align: right;
    padding: 0.8rem 1.5rem 0.3rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.04em;
}

@media (max-width: 700px) {
    .footer-meta {
        text-align: center;
        padding-top: 1rem;
    }
}
