:root{
  --blue:#0A3DFF;
  --black:#0B0B0F;
  --white:#FFFFFF;
  --muted:#F5F7FA;
  --line: rgba(255,255,255,.08);
  --shadow: 0 10px 30px rgba(4, 1, 1, 0.25);
}

*{box-sizing:border-box}

body{
  margin:0;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--white);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(10,61,255,.35), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(10,61,255,.20), transparent 55%),
    linear-gradient(180deg, #0B0B0F, #07070A 70%, #050508);
  line-height:1.5;
}

a{color:inherit; text-decoration:none}

.container{max-width:1100px; margin:0 auto; padding:0 20px}

header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,11,15,.55);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}

.brand{
  display:flex;
  gap:10px;
  align-items:center;
  font-weight:700;
  letter-spacing:.3px;
  text-decoration:none;   /* quita subrayado */
  color:inherit;          /* hereda color */
}

.brand img{
  height:40px;     /* controla tamaño del brand */
  width:auto;
  object-fit:contain;
}

.logo{
  width:160px; height:80px; border-radius:10px;
  background: linear-gradient(135deg, var(--blue), #6ea0ff);
  box-shadow: 0 8px 20px rgba(10,61,255,.35);
}

.menu{display:flex; gap:18px; font-weight:600; color:rgba(255,255,255,.85)}
.menu a{padding:8px 10px; border-radius:12px}
.menu a:hover{background:rgba(255,255,255,.06)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px; border-radius:14px; font-weight:700;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}

.btn.primary{
  background: linear-gradient(135deg, var(--blue), #3a7bff);
  border:1px solid rgba(10,61,255,.6);
}

.hero{
  padding:70px 0 30px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:24px;
  align-items:center;
}

.hero-img img{
  width:550px;   /* tamaño */
}

.pill{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.9);
  font-weight:600;
}

h1{
  margin:16px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  line-height:1.05;
  letter-spacing:-.6px;
}

.sub{
  color:rgba(255,255,255,.78);
  max-width:100ch;
  font-size: 17px;
}

.heroCard{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:18px;
  box-shadow: var(--shadow);
}

.metrics{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:12px; margin-top:14px;
}

.metric{
  padding:14px; border-radius:18px;
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.08);
}

.metric b{display:block; font-size:18px}
.metric span{color:rgba(255,255,255,.75); font-size:13px}

section{padding:38px 0}

.sectionTitle{
  display:flex; align-items:end; justify-content:space-between;
  gap:16px; margin-bottom:14px;
}

.sectionTitle h2{margin:0; font-size:26px}
.sectionTitle p{margin:0; color:rgba(255,255,255,.72)}

.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px}


.card{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  padding:16px;
  box-shadow: var(--shadow);
}

.project-card{
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.project-card:hover{
  transform: translateY(-8px);
  box-shadow: 
    0 12px 30px rgba(0,0,0,0.35),
    0 0 15px rgba(0,140,255,0.6);
  cursor: pointer;
}

.project-card:hover .thumb{
  transform: scale(1.05);
  transition: 0.4s;
}

.tag{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(10,61,255,.18);
  border:1px solid rgba(10,61,255,.35);
  color: rgba(255,255,255,.92);
  font-weight:700;
  font-size:12px;
}

.thumb{
  width:100%;
  height:180px;
  border-radius:16px;
  overflow:hidden;
  margin:12px 0 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.4s;
}

.project-card:hover .thumb img{
  transform:scale(1.1);
}

.card h3{margin:0 0 6px; font-size:18px}
.card p{margin:0; color:rgba(255,255,255,.75); font-size:14px}

/* NUEVO */

.card img{
  width:100%;
  height:170px;
  object-fit:cover;   /* ⭐ ESTA ES LA CLAVE */
  border-radius:16px;
  margin:12px 0;
}

.card{
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.contact{
  display:grid; grid-template-columns: 1fr 1fr; gap:14px;
}

.social{
  display:grid; grid-template-columns: 1fr 1fr; gap:14px;
}

/* Botón de WhatsApp con logo */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.whatsapp-btn img {
  width: 24px;
  height: 24px;
}

/* Botón de correo con logo */
.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* espacio entre el icono y el texto */
}

.email-btn img {
  width: 24px;
  height: 24px;
}

.valores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.valor-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  background: #716f6f07;
  overflow: hidden;
  border: 1px solid rgba(147, 108, 108, 0.552);
  transition: all 0.35s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* glow background animado */
.valor-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: linear-gradient(120deg, #4facfe, #00f2fe, #4facfe);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 0;
}

/* contenido encima */
.valor-card > * {
  position: relative;
  z-index: 1;
}

.valor-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.valor-card:hover::before {
  opacity: 0.15;
}

/* brillo que se mueve */
.valor-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 200%;
  background: rgba(255,255,255,0.4);
  top: -50%;
  left: -120px;
  transform: rotate(25deg);
  transition: left .6s ease;
}

.valor-card:hover::after {
  left: 120%;
}

.valor-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.valor-card p {
  color: #fef8f8;
  font-size: 14px;
  line-height: 1.5;
}

footer{
  padding:22px 0 40px;
  color:rgba(255,255,255,.65);
  border-top:1px solid var(--line);
  margin-top:12px;
}

.whatsapp-float{
  position:fixed;
  right:20px;
  bottom:20px;
  width:60px;
  height:60px;
  background:#25D366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  z-index:999;
  transition:.3s;
}

.whatsapp-float:hover{
  transform:scale(1.1);
}

.whatsapp-float svg{
  width:32px;
  fill:#fff;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* 📱 Modo celular */
@media (max-width: 768px) {

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #111;
    padding: 20px;
    border-radius: 10px;
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

#paquito-bienvenida{
position:fixed;
left:20px;
bottom:20px;
display:flex;
align-items:center;
gap:10px;
background:#0b0f19;
padding:10px 15px;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,0.4);
z-index:999;
animation:entrada 0.8s ease;
}

#paquito-bienvenida img{
width:90px;
}

#paquito-bienvenida .mensaje{
color:white;
font-size:14px;
max-width:180px;
}

@keyframes entrada{
from{
opacity:0;
transform:translateX(-50px);
}
to{
opacity:1;
transform:translateX(0);
}
}


@media (max-width: 900px){
  .hero{grid-template-columns:1fr; padding-top:44px}
  .grid3{grid-template-columns:1fr}
  .contact{grid-template-columns:1fr}
  .menu{display:none}
}