/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

:root {
    --ink-900: #0f172a;
    --ink-700: #1e293b;
    --ink-500: #475569;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    --lavender: #c084fc;
    --sand: #f5f5f4;
    --card-border: rgba(15, 23, 42, 0.08);
    --card-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius-xl: 26px;
}

.proyectos .proyectos-item.is-hidden {
    display: none;
}

.proyectos-load-more {
    margin-top: 12px;
}

.btn-ver-mas {
    border: 0;
    padding: 10px 26px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ink-700), var(--ink-900));
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.25);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.btn-ver-mas:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 24px 38px rgba(15, 23, 42, 0.3);
}

.btn-ver-mas:active {
    transform: translateY(0);
}

body {
    font-family: "Space Grotesk", "Open Sans", sans-serif;
    color: var(--ink-900);
    background: #ffffff;
    line-height: 1.65;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(70px);
}

body::before {
    background: rgba(129, 140, 248, 0.18);
    top: -120px;
    right: -160px;
}

body::after {
    background: rgba(14, 165, 233, 0.12);
    bottom: -160px;
    left: -120px;
}

/* =============================
   CV Download Buttons (Public)
   ============================= */
/* Floating action button under the hamburger (mobile/tablet) */
.cv-download-fab {
  position: fixed;
  right: 14px;
  top: 66px; /* just below the hamburger */
  z-index: 9999;
  border: 0;
  background: linear-gradient(90deg, #06b6d4 0%, #22d3ee 100%);
  color: #031625;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(34,211,238,.25), 0 2px 8px rgba(0,0,0,.16);
  transition: transform .15s ease, filter .15s ease, box-shadow .2s ease;
}
.cv-download-fab i { color: #031625; font-size: 22px; }
.cv-download-fab:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cv-download-fab:active { transform: translateY(0); }
@media (max-width: 480px) {
  .cv-download-fab { right: 12px; top: 62px; width: 40px; height: 40px; border-radius: 10px; }
  .cv-download-fab i { font-size: 20px; }
}
/* Hide FAB when mobile menu is open to avoid overlap */
.mobile-nav-active .cv-download-fab { opacity: 0; pointer-events: none; transform: scale(.96); }

/* Animated states for the download FAB */
.cv-download-fab.is-loading {
  transform: translateY(-1px) scale(0.98);
  filter: brightness(1.08);
  pointer-events: none;
}
.cv-download-fab.is-loading::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 16px;
  border: 3px solid rgba(34,211,238,.35);
  border-top-color: #22d3ee;
  border-right-color: #06b6d4;
  animation: cvSpin 1s linear infinite;
  pointer-events: none;
}
.cv-download-fab.is-done {
  background: linear-gradient(90deg, #22c55e 0%, #86efac 100%);
  animation: cvPop .5s ease-out;
}
.cv-download-fab.is-done::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(34,197,94,.22);
  animation: cvRipple .6s ease-out forwards;
  pointer-events: none;
}
.cv-download-fab.is-error {
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 100%);
  animation: cvShake .4s linear;
}

@keyframes cvSpin { to { transform: rotate(360deg); } }
@keyframes cvPop {
  0% { transform: translateY(-1px) scale(.96); }
  50% { transform: translateY(-1px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes cvShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
}
@keyframes cvRipple {
  from { transform: scale(1); opacity: .5; }
  to { transform: scale(1.7); opacity: 0; }
}

/* Desktop menu CTA button */
@media (min-width: 1200px) {
  #header .nav-menu .download-cv-desktop { margin-top: 6px; }
  #header .nav-menu .btn-download-cv {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #06b6d4 0%, #22d3ee 100%);
    color: #031625;
    border: 1px solid rgba(34,211,238,.55);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 10px 22px rgba(34,211,238,.22);
    transition: transform .15s ease, filter .15s ease, box-shadow .2s ease, color .2s ease;
  }
  #header .nav-menu .btn-download-cv:hover { filter: brightness(1.04); transform: translateY(-1px); }
}

a {
    color: var(--sky-600);
    transition: color .2s ease;
}

a:hover {
    color: var(--lavender);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Raleway", sans-serif;
}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/

.back-to-top {
    position: fixed;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    right: 15px;
    bottom: 15px;
    background: #149ddd;
    color: #fff;
    transition: display 0.5s ease-in-out;
    z-index: 99999;
}

.back-to-top i {
    font-size: 24px;
    position: absolute;
    top: 7px;
    left: 8px;
}

.back-to-top:hover {
    color: #fff;
    background: #2eafec;
    transition: background 0.2s ease-in-out;
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 9997;
    transition: all 0.5s;
    padding: 0 15px;
    background: #040b14;
    overflow-y: auto;
}

#header {
    transition: all ease-in-out 0.5s;
}

#header .d-flex {
    min-height: 100vh;
}

#header .profile img {
    margin: 18px auto;
    display: block;
    width: 138px;
    height: 138px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #2c2f3f;
}

#header .profile h1 {
    font-size: 24px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    -moz-text-align-last: center;
    text-align-last: center;
    font-family: "Poppins", sans-serif;
}

#header .profile h1 a,
#header .profile h1 a:hover {
    color: #fff;
    text-decoration: none;
}

#header .profile .social-links a {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #212431;
    color: #fff;
    line-height: 1;
    margin-right: 6px;
    border-radius: 50%;
    text-align: center;
    width: 40px;
    height: 40px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    border: 1px solid rgba(255,255,255,.06);
}

#header .profile .social-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 157, 221, 0.25);
    text-decoration: none;
}

/* Colores de marca */
#header .profile .social-links a.whatsapp { background: #25D366; }
#header .profile .social-links a.whatsapp:hover { box-shadow: 0 6px 16px rgba(37,211,102,.35); }

#header .profile .social-links a.facebook { background: #1877F2; }
#header .profile .social-links a.facebook:hover { box-shadow: 0 6px 16px rgba(24,119,242,.35); }

/* Instagram: degradado de marca */
#header .profile .social-links a.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
#header .profile .social-links a.instagram:hover {
    box-shadow: 0 6px 16px rgba(214,36,159,.35);
}

#main {
    margin-left: 300px;
}

@media (max-width: 1199px) {
    #header {
        left: -300px;
    }
    #main {
        margin-left: 0;
    }
}

/* Más compactación en móviles para que quepan más opciones sin hacer scroll */
@media (max-width: 1199px) {
    .nav-menu a { padding: 6px 10px; margin-bottom: 3px; font-size: 13px; }
    .nav-menu a i { font-size: 18px; }
}

/* Footer dentro del menú (solo móvil) */
.mobile-menu-footer { display: none; }
@media (max-width: 1199px) {
  .mobile-menu-footer {
    display: block;
    color: #a8a9b4;
    font-size: 13px;
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #2c2f3f;
  }
  .mobile-menu-footer .aircan-link { color: #37b3ed; font-weight: 700; text-decoration: none; }
  .mobile-menu-footer .aircan-link:hover { color: #149ddd; text-decoration: underline; }

  /* Evitar duplicado: en móvil usamos el footer dentro del menú */
  .sidebar-footer { display: none; }
}

/* Reducir un poco el bloque de perfil para liberar espacio vertical */
@media (min-width: 1200px) {
  #header .profile img { width: 120px; height: 120px; border-width: 6px; margin: 14px auto; }
  #header .profile .social-links a { width: 32px; height: 32px; font-size: 16px; }
}
@media (max-width: 1199px) {
  #header .profile img { width: 108px; height: 108px; border-width: 6px; margin: 12px auto; }
  #header .profile .social-links a { width: 30px; height: 30px; font-size: 15px; }
}


/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/


/* Desktop Navigation */

.nav-menu {
    padding-top: 30px;
}

/* Evitar que el último ítem del menú quede oculto detrás del footer fijo (modo escritorio) */
@media (min-width: 1200px) {
  #header .nav-menu {
    padding-bottom: 130px; /* altura aproximada del footer + margen */
  }
}

.nav-menu * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu>ul>li {
    position: relative;
    white-space: nowrap;
}

.nav-menu a {
    display: flex;
    align-items: center;
    color: #a8a9b4;
    padding: 8px 12px; /* antes 12px 15px */
    margin-bottom: 4px; /* antes 8px */
    transition: 0.3s;
    font-size: 14px; /* antes 15px */
    line-height: 1.15;
}

.nav-menu a i {
    font-size: 20px; /* antes 24px */
    padding-right: 6px; /* antes 8px */
    color: #6f7180;
}

.nav-menu a:hover,
.nav-menu .active>a,
.nav-menu li:hover>a {
    text-decoration: none;
    color: #fff;
}

.nav-menu a:hover i,
.nav-menu .active>a i,
.nav-menu li:hover>a i {
    color: #149ddd;
}


/* Mobile Navigation */

.mobile-nav-toggle {
    position: fixed;
    right: 14px;
    top: 14px;
    z-index: 10000;
    border: 0;
    background: linear-gradient(135deg, #149ddd 0%, #37b3ed 100%);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(20,157,221,0.32), 0 2px 8px rgba(0,0,0,0.16);
    transition: transform .15s ease, filter .15s ease, box-shadow .2s ease;
    outline: none !important;
    line-height: 1;
    cursor: pointer;
}

.mobile-nav-toggle:hover { filter: brightness(1.05); box-shadow: 0 14px 28px rgba(20,157,221,0.40), 0 3px 10px rgba(0,0,0,0.18); transform: translateY(-1px); }
.mobile-nav-toggle:active { transform: translateY(0); }

.mobile-nav-toggle i { color: #fff; font-size: 26px; }

.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active #header {
    left: 0;
}

.mobile-nav-active .mobile-nav-toggle { background: #0b1324; border: 2px solid #37b3ed; box-shadow: 0 12px 26px rgba(2,6,23,.45), 0 2px 8px rgba(0,0,0,.24); }
.mobile-nav-active .mobile-nav-toggle i { color: #37b3ed; }

/* Sutil pulso para llamar la atención en móvil */
@keyframes navPulse {
  0% { box-shadow: 0 0 0 0 rgba(20,157,221,.45); }
  70% { box-shadow: 0 0 0 14px rgba(20,157,221,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,157,221,0); }
}

@media (max-width: 1199px) {
  body:not(.mobile-nav-active) .mobile-nav-toggle { animation: navPulse 1.8s ease-out infinite; }
}

/* =============================
   Mobile Header Menu Buttons
   ============================= */
@media (max-width: 1199px) {
  #header .nav-menu { padding-top: 14px; }
  #header .nav-menu > ul > li { margin-bottom: 8px; }
  #header .nav-menu a {
    background: #0b1324;
    color: #e5e7eb;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,.22);
    transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  }
  #header .nav-menu a i { color: #93c5fd; font-size: 22px; padding-right: 8px; }
  #header .nav-menu a:hover {
    background: #0d1630;
    border-color: #23314a;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(20,157,221,.18), 0 2px 10px rgba(0,0,0,.18);
    color: #ffffff;
  }
  #header .nav-menu .active > a,
  #header .nav-menu li:hover > a {
    background: linear-gradient(90deg, #149ddd, #37b3ed);
    border-color: rgba(20,157,221,.55);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(20,157,221,.30);
  }
  #header .nav-menu .active > a i,
  #header .nav-menu li:hover > a i {
    color: #ffffff;
  }
}

/* Ajuste extra en pantallas muy pequeñas */
@media (max-width: 480px) {
  .mobile-nav-toggle { width: 40px; height: 40px; border-radius: 10px; right: 12px; top: 12px; }
  .mobile-nav-toggle i { font-size: 20px; }
}


/*--------------------------------------------------------------
# Portada Section
--------------------------------------------------------------*/

#portada {
    width: 100%;
    height: 100vh;
    background: url("../img/portada-bg.jpg") top center;
    background-size: cover;
    position: relative;
}

#portada::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.62), rgba(15, 23, 42, 0.35));
    z-index: 1;
}

#portada .portada-container {
    position: relative;
    z-index: 2;
    min-width: 300px;
}

#portada h1 {
    margin: 0 0 10px 0;
    font-size: 64px;
    font-weight: 700;
    line-height: 56px;
    color: #fff;
}

#portada p {
    color: #fff;
    margin-bottom: 50px;
    font-size: 26px;
    font-family: "Poppins", sans-serif;
}

#portada p span {
    color: #fff;
    padding-bottom: 4px;
    letter-spacing: 1px;
    border-bottom: 3px solid #149ddd;
}

@media (min-width: 1024px) {
    #portada {
        background-attachment: fixed;
    }
}

@media (max-width: 768px) {
    #portada h1 {
        font-size: 28px;
        line-height: 36px;
    }
    #portada h2 {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 30px;
    }
}


/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/

section {
    padding: 60px 0;
    overflow: hidden;
}

.section-bg {
    background: linear-gradient(180deg, #f9fafb 0%, #eef2ff 100%);
}

.section-title {
    padding-bottom: 36px;
    position: relative;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 18px;
    position: relative;
    color: var(--ink-900);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, var(--sky-500), var(--lavender));
    bottom: 0;
    left: 0;
    border-radius: 999px;
}

.section-title p {
    margin-bottom: 0;
    color: var(--ink-500);
    max-width: 720px;
}


/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/

.about .content {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    padding: 32px;
    box-shadow: var(--card-shadow);
}

.about .content h3 {
    font-weight: 700;
    font-size: 24px;
    color: var(--ink-700);
    letter-spacing: 0.06em;
}

.about .content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 18px;
}

.about .content ul li {
    padding-bottom: 14px;
    display: flex;
    gap: 8px;
    color: var(--ink-500);
}

.about .content ul i {
    font-size: 20px;
    color: var(--sky-500);
}

.about .content p:last-child {
    margin-bottom: 0;
}

.about img {
    border-radius: calc(var(--radius-xl) - 6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}


/*--------------------------------------------------------------
# Facts
--------------------------------------------------------------*/

.facts {
    padding-bottom: 30px;
}

.facts .count-box {
    padding: 30px;
    width: 100%;
}

.facts .count-box i {
    display: block;
    font-size: 44px;
    color: #149ddd;
    float: left;
}

.facts .count-box span {
    font-size: 48px;
    line-height: 40px;
    display: block;
    font-weight: 700;
    color: #050d18;
    margin-left: 60px;
}

.facts .count-box p {
    padding: 15px 0 0 0;
    margin: 0 0 0 60px;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    color: #122f57;
}

.facts .count-box a {
    font-weight: 600;
    display: block;
    margin-top: 20px;
    color: #122f57;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    transition: ease-in-out 0.3s;
}

.facts .count-box a:hover {
    color: #1f5297;
}

.facts ul {
    list-style: none;
    padding: 0;
}

.facts ul li {
    padding-bottom: 10px;
}

.facts ul i {
    font-size: 20px;
    padding-right: 2px;
    color: #149ddd;
}


/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/

.resume .resume-title {
    font-size: 26px;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #050d18;
}

.resume .resume-item {
    padding: 28px;
    margin-bottom: 24px;
    border-left: 3px solid var(--sky-500);
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

.resume .resume-item h4 {
    line-height: 1.3;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: "Space Grotesk", sans-serif;
    color: var(--ink-900);
    margin-bottom: 12px;
}

.resume .resume-item h5 {
    font-size: 14px;
    background: rgba(14, 165, 233, 0.12);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 12px;
    border-radius: 999px;
    color: var(--sky-600);
}

.resume .resume-item ul {
    padding-left: 18px;
}

.resume .resume-item ul li {
    padding-bottom: 10px;
    color: var(--ink-500);
}


/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/


.proyectos .proyectos-item {
    margin-bottom: 32px;
}

.proyectos .proyectos-wrap {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 22px;
    border: 1px solid var(--card-border);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
    background: #fff;
    padding: 18px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.proyectos .proyectos-wrap:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 65px rgba(15, 23, 42, 0.22);
}

.proyectos .proyectos-wrap img {
    transition: transform 0.6s ease;
    border-radius: 16px;
}

.proyectos .proyectos-wrap:hover img {
    transform: scale(1.04);
}

.proyectos .proyectos-wrap .proyectos-title {
    text-align: left;
    margin-bottom: 14px;
}

.proyectos .proyectos-wrap .proyectos-title h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink-900);
}

.proyectos .proyectos-wrap .proyectos-title h4::after {
    content: '';
    display: block;
    width: 46px;
    height: 3px;
    background: linear-gradient(90deg, var(--sky-600), var(--lavender));
    margin-top: 6px;
    border-radius: 999px;
}

.proyectos .proyectos-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.proyectos .proyectos-wrap .proyectos-links {
    opacity: 1;
    left: 0;
    right: 0;
    bottom: -60px;
    z-index: 3;
    position: absolute;
    transition: all ease-in-out 0.3s;
    display: flex;
    justify-content: center;
}

.proyectos .proyectos-wrap .proyectos-links a {
    color: #fff;
    font-size: 28px;
    text-align: center;
    background: rgba(20, 157, 221, 0.75);
    transition: 0.3s;
    width: 50%;
}

.proyectos .proyectos-wrap .proyectos-links a:hover {
    background: rgba(20, 157, 221, 0.95);
}

.proyectos .proyectos-wrap .proyectos-links a+a {
    border-left: 1px solid #37b3ed;
}

.proyectos .proyectos-wrap:hover::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
}

.proyectos .proyectos-wrap:hover .proyectos-links {
    opacity: 1;
    bottom: 0;
}


/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/

.skills .icon-box {
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--card-border);
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: transform .3s ease, border-color .3s ease;
}

.skills .icon-box:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.35);
}

.skills .icon {
    float: none;
    margin-bottom: 18px;
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #06b6d4 0%, #22d3ee 50%, #60a5fa 100%);
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.3);
}

.skills .icon i {
    color: #fff;
    font-size: 30px;
}

.skills .icon::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.45);
    opacity: .8;
}

.skills .icon-letter {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
}

.skills .title {
    margin-left: 0;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--ink-900);
}

.skills .title a {
    color: inherit;
}

.skills .title a:hover {
    color: var(--lavender);
}

.skills .description {
    margin-left: 0;
    line-height: 1.7;
    font-size: 15px;
    color: var(--ink-500);
}


/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/

.contact {
    padding-bottom: 130px;
}

.contact .info {
    padding: 36px;
    background: #fff;
    width: 100%;
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.contact .info i {
    font-size: 22px;
    color: #fff;
    float: left;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--sky-600), var(--lavender));
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.contact .info h4 {
    padding: 0 0 0 76px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink-900);
}

.contact .info p {
    padding: 0 0 10px 76px;
    margin-bottom: 0;
    font-size: 15px;
    color: var(--ink-500);
}

.contact .info .email p {
    padding-top: 5px;
}

.contact .info .social-links {
    padding-left: 60px;
}

.contact .info .social-links {
    padding-left: 76px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact .info .social-links a {
    font-size: 18px;
    display: inline-flex;
    background: linear-gradient(135deg, var(--sky-600), var(--lavender));
    color: #fff;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    width: 42px;
    height: 42px;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.3);
}

.contact .info .social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 28px rgba(192, 132, 252, 0.32);
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
    transform: scale(1.06);
}

.contact .php-email-form {
    width: 100%;
    padding: 36px;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.contact .php-email-form .form-group {
    padding-bottom: 12px;
}

.contact .php-email-form .validate {
    display: none;
    color: #ef4444;
    margin: 6px 0 0;
    font-weight: 500;
    font-size: 13px;
}

.contact .php-email-form .error-message {
    display: none;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    text-align: center;
    padding: 15px;
    font-weight: 600;
    border-radius: 12px;
}

.contact .php-email-form .sent-message {
    display: none;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #22d3ee);
    text-align: center;
    padding: 15px;
    font-weight: 600;
    border-radius: 12px;
}

.contact .php-email-form .loading {
    display: none;
    background: rgba(14, 165, 233, 0.08);
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    color: var(--sky-600);
    font-weight: 600;
}

.contact .php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--sky-600);
    border-top-color: transparent;
    animation: animate-loading 1s linear infinite;
}

.contact .php-email-form .form-control {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 12px 14px;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact .php-email-form .form-control:focus {
    background: #fff;
    border-color: var(--sky-600);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.contact .php-email-form textarea {
    padding: 14px;
}

.contact .php-email-form .form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact .php-email-form .btn-whatsapp,
.contact .php-email-form .btn-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 700;
    letter-spacing: .3px;
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.contact .php-email-form .btn-whatsapp {
    background: linear-gradient(90deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(18,140,126,.25);
}

.contact .php-email-form .btn-email {
    background: linear-gradient(90deg, var(--ink-700), var(--ink-900));
    color: #f8fafc;
    box-shadow: 0 10px 22px rgba(15,23,42,0.2);
}

.contact .php-email-form .btn-whatsapp:hover,
.contact .php-email-form .btn-email:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.contact .php-email-form .btn-whatsapp:active,
.contact .php-email-form .btn-email:active {
    transform: translateY(0);
}

@media (max-width: 576px) {
    .contact .php-email-form {
        padding: 26px;
    }
}

@-webkit-keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/

.breadcrumbs {
    padding: 40px 0;
}

.breadcrumbs h2 {
    font-size: 26px;
    font-weight: 300;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.breadcrumbs ol li+li {
    padding-left: 10px;
}

.breadcrumbs ol li+li::before {
    display: inline-block;
    padding-right: 10px;
    color: #0e2442;
    content: "/";
}

@media (max-width: 768px) {
    .breadcrumbs .d-flex {
        display: block !important;
    }
    .breadcrumbs ol {
        display: block;
    }
    .breadcrumbs ol li {
        display: inline-block;
    }
}


/*--------------------------------------------------------------
# Proyectos Details
--------------------------------------------------------------*/

.proyectos-details {
    padding-top: 0;
}

.proyectos-details .proyectos-details-container {
    position: relative;
}

.proyectos-details .proyectos-details-carrusel {
    position: relative;
    z-index: 1;
}

.proyectos-details .proyectos-details-carrusel .owl-nav,
.proyectos-details .proyectos-details-carrusel .owl-dots {
    margin-top: 5px;
    text-align: left;
}

.proyectos-details .proyectos-details-carrusel .owl-dot {
    display: inline-block;
    margin: 0 10px 0 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd !important;
}

.proyectos-details .proyectos-details-carrusel .owl-dot.active {
    background-color: #149ddd !important;
}

.proyectos-details .proyectos-info {
    padding: 30px;
    position: absolute;
    right: 0;
    bottom: -70px;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.proyectos-details .proyectos-info h3 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.proyectos-details .proyectos-info ul {
    list-style: none;
    padding: 0;
    font-size: 15px;
}

.proyectos-details .proyectos-info ul li+li {
    margin-top: 10px;
}

.proyectos-details .proyectos-desc {
    padding-top: 50px;
}

.proyectos-details .proyectos-desc h2 {
    width: 50%;
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 20px;
}

.proyectos-details .proyectos-desc p {
    padding: 0;
}

@media (max-width: 768px) {
    .proyectos-details .proyectos-desc h2 {
        width: 100%;
    }
    .proyectos-details .proyectos-info {
        position: static;
        margin-top: 30px;
    }
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

#footer {
    padding: 15px;
    color: #f4f6fd;
    font-size: 14px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 9999;
    background: #040b14;
}

#footer .copyright {
    text-align: center;
}

/* Estilo para el enlace de Aircan en el footer */
#footer .aircan-link {
    color: #37b3ed;
    text-decoration: none;
    position: relative;
    font-weight: 700;
}
#footer .aircan-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: currentColor;
    opacity: .6;
    transform: scaleX(.6);
    transform-origin: left;
    transition: transform .2s ease, opacity .2s ease;
}
#footer .aircan-link:hover { color: #149ddd; }
#footer .aircan-link:hover::after { transform: scaleX(1); opacity: 1; }

#footer .pwa-install-btn,
.mobile-menu-footer .pwa-install-btn,
.sidebar-footer .pwa-install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;
  border: 1px solid rgba(55,179,237,.5);
  border-radius: 999px;
  color: #e5f3ff;
  background: linear-gradient(90deg, #149ddd, #37b3ed);
  box-shadow: 0 6px 16px rgba(20,157,221,.25);
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease, box-shadow .2s ease;
}
#footer .pwa-install-btn i,
.mobile-menu-footer .pwa-install-btn i,
.sidebar-footer .pwa-install-btn i { font-size: 14px; }
#footer .pwa-install-btn:hover,
.mobile-menu-footer .pwa-install-btn:hover,
.sidebar-footer .pwa-install-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Mini variant */
.pwa-install-btn.mini { padding: 3px 8px; font-size: 12px; }

/* Subtle single pulse animation used on first reveal */
.pulse-once { animation: oncePulse .6s ease-out 1; }
@keyframes oncePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Make the install button slightly smaller on responsive/mobile so it fits inline */
@media (max-width: 1199px) {
  .mobile-menu-footer .pwa-install-btn {
    padding: 2px 6px;
    font-size: 11px;
    gap: 4px;
    margin-left: 6px;
  }
  .mobile-menu-footer .pwa-install-btn i { font-size: 12px; }
}

.sidebar-footer {
    margin-top: auto;
    padding: 22px 10px 30px;
    text-align: center;
    color: #a8a9b4;
    font-size: 13px;
}

.sidebar-footer .aircan-link {
    color: #37b3ed;
    font-weight: 700;
}

.sidebar-footer .pwa-install-btn {
    margin-top: 12px;
}
@media (max-width: 480px) {
  .mobile-menu-footer .pwa-install-btn {
    padding: 2px 5px;
    font-size: 10px;
    gap: 4px;
  }
}

#footer .credits {
    padding-top: 5px;
    text-align: center;
    font-size: 13px;
    color: #eaebf0;
}

@media (max-width: 1199px) {
    #footer {
        position: static;
        width: auto;;
    }
}

/* Asegurar que el venobox funcione en móvil */
.venobox {
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
}

/* Estilos para el overlay de venobox en móvil */
.vbox-overlay {
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9) !important;
}

.vbox-container {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.vbox-content {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
}

.vbox-content img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajustes específicos para móvil */
@media (max-width: 768px) {
    .vbox-container {
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .vbox-content {
        width: 100vw !important;
        height: 100vh !important;
    }
    
    .vbox-content img {
        width: 100% !important;
        height: auto !important;
        max-height: 100vh !important;
    }
}

/* Importando estilos adicionales para el panel de administración */
@import url('admin_style.css');

/* Aquí puedes mantener estilos específicos adicionales si los tienes */

/*==============================================================
  # Contact form - modern look & WhatsApp button
  ===============================================================*/
  .contact .php-email-form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    padding: 26px;
  }
  .contact .php-email-form .form-group label { color: #0e2442; font-weight: 600; }
  .contact .php-email-form .form-control {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 12px 14px;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .contact .php-email-form .form-control:focus {
    background: #fff;
    border-color: #149ddd;
    box-shadow: 0 0 0 3px rgba(20,157,221,.15);
  }

  /* WhatsApp CTA button */
  .contact .php-email-form .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    letter-spacing: .2px;
    box-shadow: 0 10px 22px rgba(18,140,126,.25);
    transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
    width: 100%;
    max-width: 420px;
  }
  .contact .php-email-form .btn-whatsapp i { font-size: 20px; }
  .contact .php-email-form .btn-whatsapp:hover { filter: brightness(1.05); box-shadow: 0 12px 26px rgba(18,140,126,.28); }
  .contact .php-email-form .btn-whatsapp:active { transform: translateY(1px); }

  @media (max-width: 576px) {
    .contact .php-email-form { padding: 20px; border-radius: 12px; }
  }

/*==============================================================
  # Certificates (public page)
  ===============================================================*/
.certificates-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
}

.cert-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 10px 10px 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cert-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }

.cert-card a { display: block; cursor: zoom-in; }
.cert-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px; /* no se verá enorme */
  object-fit: contain; /* respeta proporción real (sin recortes) */
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #eef2f7;
}
.cert-card .cert-title {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #173b6c;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .cert-card img { max-height: 160px; }
  .cert-card .cert-title { font-size: 13.5px; }
}
