* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #0f1424;
    overflow-x: hidden;
}

.fondo {
    background-image: linear-gradient(rgba(40, 40, 66, 0.35), rgba(108, 122, 151, 0.35)), url(../imagenes/fondo5.jpg);
    width: 100%;
    min-height: 100vh;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    color: #eef2ff;
    overflow-x: hidden;
}

body {
    position: relative;
    min-width: 0;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    width: 30px;
    cursor: pointer;
}

.navbar-ydc {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(18, 22, 38, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    padding: 0.3rem 0;
    min-height: auto;
}

.navbar-ydc-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    align-items: center;
}

.navbar-brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-right: 1rem;
}

.navbar-ydc .logo {
    width: 30px;
    height: 30px;
    margin: 0;
    flex-shrink: 0;
}

.navbar-ydc .navbar-brand-ydc {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 19px;
    color: rgb(255, 255, 240);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.navbar-ydc .nav-link-ydc {
    font-family: Georgia, serif;
    font-size: 17px;
    color: rgb(255, 255, 240) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
}

.navbar-ydc .nav-link-ydc:hover,
.navbar-ydc .nav-link-ydc:focus {
    color: rgb(42, 210, 228) !important;
}

@media (min-width: 992px) {
    .navbar-nav-ydc {
        gap: 0.25rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-ydc-inner {
        flex-wrap: wrap;
        align-items: center;
        padding: 0 0.75rem;
    }

    .navbar-brand-group {
        flex: 1;
        min-width: 0;
        margin-right: 0.5rem;
        gap: 10px;
    }

    .navbar-ydc .navbar-brand-ydc {
        font-size: 15px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .navbar-ydc .logo {
        width: 28px;
        height: 28px;
    }

    .navbar-toggler-ydc {
        border-color: rgba(255, 255, 255, 0.45);
        padding: 0.35rem 0.55rem;
    }

    .navbar-ydc .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        background: rgba(12, 16, 30, 0.98);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.25rem 0 0.5rem;
    }

    .navbar-nav-ydc {
        align-items: center;
        width: 100%;
    }

    .navbar-ydc .nav-link-ydc {
        text-align: center;
        padding: 0.55rem 1rem !important;
    }
}

.bi-facebook,
.bi-instagram,
.bi-linkedin {
    color: rgb(255, 255, 255);
}

:root {
    --facebook: #3b5999;
    --instagram: #e4405f;
    --linkedin: #0077B5;
}

.redes {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 0;
    padding: 0;
}

.redes ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.redes ul a.red-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 22px;
    line-height: 1;
    color: rgb(248, 248, 248);
    border-radius: 50%;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.redes ul a.red-social i {
    display: block;
    line-height: 1;
}

.redes ul a.red-social:hover {
    transform: translateY(-3px);
}

.redes ul a.red-linkedin:hover {
    background-color: var(--linkedin);
}

.redes ul a.red-instagram:hover {
    background-color: var(--instagram);
}

.redes ul a.red-facebook:hover {
    background-color: var(--facebook);
}

.redes ul .bi-facebook:hover {
    color: #ffffff;
}

.redes ul .bi-instagram:hover {
    color: #ffffff;
}

.redes ul .bi-linkedin:hover {
    color: #ffffff;
}

.footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 1rem 0 2.5rem;
    text-align: center;
    width: 100%;
}

.footer p {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0 1rem;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

.pagina-titulo {
    font-family: 'Puritan', sans-serif;
    font-size: 36px;
    color: #dfecff;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pagina-subtitulo {
    font-family: 'Puritan', sans-serif;
    font-size: 24px;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.pagina-texto {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #f5f8ff !important;
    line-height: 1.75;
    text-align: justify;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    margin-bottom: 1rem;
}

.tarjeta-especialidad {
    background: rgba(18, 28, 48, 0.55);
    border-left: 4px solid rgb(42, 210, 228);
    padding: 15px 20px;
    margin-bottom: 15px;
    color: #f5f8ff;
    backdrop-filter: blur(4px);
}

.tarjeta-especialidad h4 {
    font-family: 'Puritan', sans-serif;
    color: #dfecff !important;
    font-size: 20px;
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.tarjeta-especialidad p {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #eef2ff !important;
    line-height: 1.65;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contenido-pagina {
    padding-top: 76px;
    padding-bottom: 48px;
}

.cv-item {
    background: rgba(18, 28, 48, 0.55);
    border-left: 4px solid rgb(42, 210, 228);
    padding: 15px 20px;
    margin-bottom: 15px;
    color: #eef2ff;
    backdrop-filter: blur(4px);
}

.cv-item h4 {
    font-family: 'Puritan', sans-serif;
    color: #dfecff !important;
    font-size: 20px;
    margin-bottom: 5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.cv-item .cv-empresa {
    font-family: Georgia, serif;
    color: rgb(42, 210, 228);
    font-size: 16px;
    margin-bottom: 5px;
}

.cv-item .cv-fecha {
    font-family: Georgia, serif;
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 10px;
}

.cv-item p {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    color: #eef2ff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cv-item p + p {
    margin-top: 10px;
}

.cv-item a {
    color: rgb(42, 210, 228);
    text-decoration: none;
}

.cv-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cv-link-proyecto {
    margin-top: 12px !important;
}

.cv-link-proyecto a {
    font-weight: bold;
}

.habilidad-tag {
    display: inline-block;
    background: rgba(42, 210, 228, 0.3);
    color: #ffffff;
    padding: 6px 14px;
    margin: 5px 5px 5px 0;
    border-radius: 20px;
    font-family: Georgia, serif;
    font-size: 14px;
}

.habilidades-bloque {
    margin-bottom: 30px;
}

.btn-descargar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgb(42, 210, 228);
    color: #1a1a2e;
    padding: 9px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.25;
    transition: 0.3s;
    margin-bottom: 30px;
}

.btn-descargar:hover {
    background: #ffffff;
    color: #1a1a2e;
}

.tarjeta-servicio {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid rgb(42, 210, 228);
    padding: 20px;
    margin-bottom: 20px;
    color: #ffffff;
    height: 100%;
    transition: 0.3s;
}

.tarjeta-servicio:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.tarjeta-servicio .icono-servicio {
    font-size: 32px;
    color: rgb(42, 210, 228);
    margin-bottom: 12px;
    display: block;
}

.tarjeta-servicio h4 {
    font-family: 'Puritan', sans-serif;
    color: #dfecff;
    font-size: 20px;
    margin-bottom: 10px;
}

.tarjeta-servicio p {
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.proyecto-ejemplo {
    margin-top: 12px !important;
    font-size: 14px !important;
    color: #dddddd !important;
}

.proyecto-ejemplo a {
    color: rgb(42, 210, 228);
    text-decoration: none;
}

.proyecto-ejemplo a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.tarjeta-especialidad a {
    color: rgb(42, 210, 228);
    text-decoration: none;
}

.tarjeta-especialidad a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.intro-servicios {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

.contacto-subtitulo {
    margin-top: 0;
}

.formulario-contacto {
    background: rgba(18, 28, 48, 0.55);
    border-left: 4px solid rgb(42, 210, 228);
    padding: 25px;
    margin-bottom: 20px;
    color: #eef2ff;
    backdrop-filter: blur(4px);
}

.formulario-contacto label {
    font-family: Georgia, serif;
    font-size: 15px;
    color: #dfecff;
    margin-bottom: 5px;
    display: block;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-family: Georgia, serif;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
}

.formulario-contacto textarea {
    height: 130px;
    resize: vertical;
}

.btn-enviar {
    background: rgb(42, 210, 228);
    color: #1a1a2e;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar:hover {
    background: #ffffff;
}

.contacto-info {
    background: rgba(18, 28, 48, 0.55);
    border-left: 4px solid rgb(42, 210, 228);
    padding: 20px;
    margin-bottom: 20px;
    color: #eef2ff;
    backdrop-filter: blur(4px);
}

.contacto-info p {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 2;
    margin: 0;
}

.contacto-info a {
    color: rgb(42, 210, 228);
    text-decoration: none;
}

.contacto-info a:hover {
    color: #ffffff;
}

.mensaje-exito {
    background: rgba(42, 210, 228, 0.3);
    border: 1px solid rgb(42, 210, 228);
    padding: 15px;
    border-radius: 5px;
    color: #ffffff;
    font-family: Georgia, serif;
    margin-bottom: 20px;
}

.mensaje-error {
    background: rgba(255, 80, 80, 0.3);
    border: 1px solid #ff5050;
    padding: 15px;
    border-radius: 5px;
    color: #ffffff;
    font-family: Georgia, serif;
    margin-bottom: 20px;
}

.campo-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.sector-publico {
    display: inline-block;
    background: rgba(42, 210, 228, 0.4);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-family: Georgia, serif;
    margin-left: 8px;
}

.sector-privado {
    display: inline-block;
    background: rgba(255, 165, 0, 0.4);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-family: Georgia, serif;
    margin-left: 8px;
}

.btn-contacto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgb(42, 210, 228);
    color: #1a1a2e;
    padding: 9px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.25;
    transition: 0.3s;
    margin-top: 25px;
    margin-bottom: 10px;
}

.btn-contacto:hover {
    background: #ffffff;
    color: #1a1a2e;
    transform: translateY(-2px);
}

.btn-contacto.btn-cta-secundario {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-cta-secundario {
    background: transparent;
    color: #f5f8ff;
    border: 1px solid rgba(42, 210, 228, 0.85);
}

.btn-cta-secundario:hover {
    background: rgba(42, 210, 228, 0.15);
    color: #ffffff;
    border-color: rgb(42, 210, 228);
}

.cta-grupo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cta-grupo .btn-contacto {
    margin-top: 0;
}

.cta-bloque {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(18, 28, 48, 0.55);
    border-left: 4px solid rgb(42, 210, 228);
    backdrop-filter: blur(4px);
}

.cta-bloque .pagina-texto,
.cta-bloque .cta-texto {
    text-align: center;
    margin-bottom: 15px;
}

.cta-accion {
    text-align: center;
}

.cta-bloque .intro-servicios {
    text-align: center;
    margin-bottom: 15px;
}

.lista-contacto {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-contacto li {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 2.2;
    color: #ffffff;
}

.lista-contacto a {
    color: rgb(42, 210, 228);
    text-decoration: none;
}

.lista-contacto a:hover {
    color: #ffffff;
}

.lista-contacto i {
    margin-right: 8px;
    color: rgb(42, 210, 228);
}

@media (max-width: 767.98px) {
    .btn-contacto,
    .btn-descargar {
        font-size: 15px;
        padding: 10px 20px;
        min-height: 44px;
    }

    .btn-contacto.btn-cta-secundario {
        font-size: 14px;
        padding: 9px 18px;
        min-height: 44px;
    }

    .cta-grupo {
        gap: 8px;
    }
}
