/* ========== Design Tokens (Light version) ========== */
:root{
  --bg: #ffffff;          /* white background */
  --surface: #fdfdfd;     /* cards / header */
  --surface-2: #f6f6f6;   /* hover */
  --line: #e0e0e0;        /* subtle borders */
  --text: #1a1a1a;        /* main text */
  --muted: #232323;       /* secondary text */
  --accent: #111111;      /* buttons dark */
  --shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* ========== Base ========== */
*{ box-sizing: border-box; }
html,body{
  margin:0;
  padding:0;
  background: none;
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  position: relative;
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("images/textured-paper.png") repeat;
  background-size: auto;   
  opacity: .3;            
  z-index: -1;
}

img{ display:block; max-width:100%; height:auto; }

.container{
  width: min(900px, 92vw);
  margin: 0 auto;
}

.section{
  padding: clamp(20px, 3vw, 40px) 0;
}

h1,h2,h3{
  margin: 0 0 .5rem 0;
  line-height: 1.2;
}
h1{ font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 800; }
h2{ font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; margin-bottom: 1.25rem; }
h3{ font-size: clamp(1.1rem, 2vw, 1.25rem); font-weight: 700; }

p{ color: var(--muted); margin: 0 0 1rem 0; }

/* ========== Header / Nav ========== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand{
  color: var(--text) !important;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .2px;
}
.site-header .nav a{
  color: var(--text);
  margin-left: 16px;
}
.site-header .nav a:hover{
  color: var(--text); 
}

/* ========== Hero ========== */
.hero{ padding-top: clamp(40px, 6vw, 80px); }
.hero-grid{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  grid-template-columns: 0.8fr 1.2fr;
}
.hero-photo{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  /* Nuevo: ancho fluido con clamp */
  width: clamp(200px, 30vw, 320px);
  margin: 0 auto; /* centra la foto */
}
.hero-copy .kicker{
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .3px;
  margin-top: .25rem;
}
.availability{ color: var(--text); font-weight: 600; }

/* ========== Cards (Experience) ========== */
.card{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.card-header{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: .5rem;
}
.badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: .85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.card-cta{
  align-self: center;
}

/* ========== Links ========== */
a {
  color: #0076df;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: #eee;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease,
              text-underline-offset 0.3s ease,
              text-decoration-thickness 0.3s ease;
}

a:hover,
a:focus,
a:active {
  border: 0;
  color: #00369f;
  text-decoration: underline;
  text-decoration-color: #bbb;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

/* ========== Contact ========== */
.contact a{ color: var(--text); text-decoration: underline; text-decoration-color: var(--line); }
.contact a:hover{ text-decoration-color: var(--text); }

/* ========== Contact Form ========== */
.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  box-shadow: var(--shadow);   /* sombra sutil en cada campo */
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  background: #0076df;
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  width: auto;
  justify-self: start;
  transition: background 0.3s ease, transform 0.1s ease;
  
}

.contact-form button:hover {
  background: #005bb5;
  transform: translateY(-1px);
}

.contact-form button:active {
  transform: translateY(0);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-size: 1rem;        /* igual al footer */
  line-height: 1.6;       
  color: var(--muted);    
  opacity: 1; 
}


/* ========== Footer ========== */
.site-footer{
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  color: var(--muted);
}
.site-footer .foot-links a{
  color: var(--text);
  margin-left: 16px;
}
.site-footer .foot-links a:hover{
  color: var(--text);
}
/* ========== Responsive ========== */
@media (max-width: 880px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .hero-photo{ order: 2; }
  .hero-copy{ order: 1; }
  .card{
    grid-template-columns: 1fr;
  }
  .nav a{ margin-left: 12px; }
}

