:root {
 --primary: #75F94D;      /* verde del candidato */
  --primary-light: #d9ffe0; /* verde muy suave para degradados si quieres */
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --accent: #dc2626;   /* fondo hero con verde elegante */
}
*{box-sizing:border-box}
body{margin:0;font-family:Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:#111}
.container{max-width:1100px;margin:0 auto;padding:24px}
.site-header{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:20}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:700}
.nav a{margin-left:14px;color:var(--muted);text-decoration:none}
.nav a:hover{color:var(--accent)}
.hero{position:relative}
.hero img{width:100%;height:420px;object-fit:cover;display:block}
.hero-overlay{position:absolute;left:24px;top:24px;color:white;max-width:560px;text-shadow:0 6px 18px rgba(0,0,0,0.45)}
.hero-overlay h1{margin:0 0 8px;font-size:36px}
.hero-overlay p{margin:0 0 12px;color:rgba(255,255,255,0.9)}
.btn{display:inline-block;background:var(--accent);color:white;padding:10px 14px;border-radius:6px;text-decoration:none}


html {
  scroll-behavior: smooth;
}

.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: white;
  background: linear-gradient(135deg, #a30707, #dd3b3b);
  box-shadow: 0 12px 30px  rgba(161, 67, 67, 0.25);

  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px  rgba(161, 67, 67, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* section h2 */


section h2 {
  color: var(--accent); 
  font-size: 3rem;      
  font-weight: 700;
  text-transform: uppercase; 
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
  text-align: center;
}

.trayectoria-sub,
.contacto-sub,
.section-subtitle {
  color: #ffffff;         
  font-size: 2rem;       
  font-weight: 600;         
  text-align: center;
  margin-bottom: 40px;    
  letter-spacing: 0.5px;  
  text-shadow: 1px 1px 2px rgba(0,0,0,0.25); 
}

.years {
   color: #ffffff; 
  font-size: 1.2rem;    
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
}



/* section hero */


.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;

  /* Imagen del candidato */
  background-image: url("./img/c-05.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(16, 70, 30, 0.65),
    rgba(16, 70, 30, 0.65)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}


.hero h1 {
  font-size: 52px;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  color:white;
  line-height: 1.6;
  margin-bottom: 35px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  margin-bottom: 20px;
  color: white;
  backdrop-filter: blur(6px);
}




.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  padding: 14px 30px;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.4);
  color: rgb(231, 10, 10);
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.btn-outline:hover {
  background: white;
  color: #0f172a;
}



/* header */

.site-header {
  background: linear-gradient(90deg, #ffffff, #f3f4f6);
  padding: 14px 0;
  border-bottom: 2px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand img {
  height: 50px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 6px;
}

/* linea animada */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background: #dc2626; /* rojo campaña */
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active::after {
  width: 100%;
}

/* about */

.about {
  padding: 90px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-visual {
  position: relative;
  text-align: center;
}

.about-visual img {
  width: 260px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.about-badge {
  margin-top: 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  display: inline-block;
}

.section-tag {
  display: inline-block;
  background: rgba(15,23,42,0.06);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 15px;
}

.about-content h2 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 20px;
}

.about-description {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 30px;
}

.about-highlights {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.highlight {
  display: flex;
  flex-direction: column;
}

.highlight-number {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.highlight-text {
  font-size: 14px;
  color: #64748b;
}



/* TRAYECTORIA */

.trayectoria {
 padding: 90px 20px;
  background: var(--primary); /* verde base */
  color: white; /* texto blanco para buen contraste */
  text-align: center;
}


.trayectoria {
  position: relative;
  padding: 100px 20px 120px;
  text-align: center;
  overflow: hidden;

  background-image: url("./img/c-06.jpeg"); /* cambia por tu imagen */
  background-size: cover;
  background-position: center top; /* prioriza cabezas */
  background-repeat: no-repeat;
}

.trayectoria::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(117, 249, 77, 0.28); /* mismo tono que contacto */
}

/* todo el contenido encima de la imagen */
.trayectoria > * {
  position: relative;
  z-index: 2;
}



/* títulos que resalten (como pediste antes) */
.trayectoria h2 {
  color: white;
  font-size: 44px;
  margin-bottom: 10px;
}

.trayectoria-sub {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 40px;
}

/* tarjetas del timeline más legibles sobre foto */
.timeline-content {
  background: rgba(255,255,255,0.9);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}


/* CONTADOR */
.contador-experiencia {
  margin-bottom: 60px;
}

#contadorAnios {
  font-size: 3rem;
  font-weight: bold;
  display: block;
}

/* TIMELINE */
.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.5); /* línea del timeline clara */
}

/* Mobile / Tablet responsive rules */
/* Toggle button hidden on desktop */
.nav-toggle{display:none;background:transparent;border:0;font-size:26px;cursor:pointer}

@media (max-width:900px){
  .container{padding:18px}
  .nav{gap:18px}
  .hero {min-height:60vh;padding:40px 12px}
  .hero h1{font-size:40px}
  .hero-subtitle{font-size:1.1rem}
  .about-grid{grid-template-columns:1fr;gap:28px}
  .about-visual img{width:220px}
  .cards{gap:16px}
}

@media (max-width:700px){
  .nav-toggle{display:block}
  .nav{display:none;position:fixed;inset:64px 0 0 0;background:linear-gradient(180deg,#fff,#f8fafc);flex-direction:column;padding:20px;gap:18px;overflow:auto;z-index:95}
  .nav.open{display:flex}
  .nav a{font-size:18px;padding:10px 6px}
  .header-inner{padding-right:12px;padding-left:12px}
  .brand img{height:44px}
  .hero h1{font-size:28px}
  .hero-subtitle{font-size:1rem}
  .grid img{height:120px}
  .about-visual img{width:180px}
  .trayectoria {padding:60px 12px}
  .timeline::before{display:none}
  .timeline {padding:0 12px}
  .timeline-item{margin-bottom:18px}
  .section h2{font-size:1.6rem}
}

@media (max-width:420px){
  .hero {min-height:50vh}
  .hero h1{font-size:22px}
  .btn-primary, .btn-outline{width:100%;text-align:center}
  .hero-actions{flex-direction:column}
  .nav a{font-size:17px}
  .about-visual img{width:160px}
}


.timeline-item {
  display: flex;
  align-items: center;
  margin: 40px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-icon {
 background: rgba(255,255,255,0.2);
  border-radius: 50%;
  padding: 15px;
  font-size: 1.5rem;
  margin: 0 20px;
}


.timeline-content {
     background: rgba(255,255,255,0.9); 
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 20px;
  border-radius: 15px;
  width: 40%;
  backdrop-filter: blur(10px);
 
}

.timeline-content h3 {
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.95rem;
   color: var(--muted);
}

.timeline-content span {
  font-size: 0.8rem;
  opacity: 0.7;
}


/* ===== Sección Enfoque ===== */
.enfoque {
  padding: 90px 20px;
  background: #f8fafc;
}

/* imagen del candidato */
.enfoque-hero {
   max-width: 600px;
  margin: 30px auto 50px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.enfoque-hero img {
  width: 100%;
   height: auto; 
  display: block;
}




.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  background: #e2e8f0;
  color: #0f172a;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 34px;
  margin-bottom: 10px;
  color: #0f172a;
}

.section-subtitle {
  font-size: 18px;
   color: #334155;
}

.enfoque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.enfoque-card {
  background: #d9ffe0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.3s ease;
}

.enfoque-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.enfoque-icon {
  font-size: 38px;
  margin-bottom: 18px;
}

.enfoque-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0f172a;
}

.enfoque-card p {
  color: #475569;
  line-height: 1.6;
  font-size: 15px;
}



/*  end */

/* contacto */


/* ============================= */
/* SECCIÓN CONTACTO CON IMAGEN */
/* ============================= */

.contacto {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;

  background-image: url("../img/c-07.jpeg");
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
}

/* capa verde elegante encima de la imagen */
.contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(117, 249, 77, 0.28);
}

/* contenido encima de la imagen */
.contacto > * {
  position: relative;
  z-index: 2;
}

/* título */
.contacto h2 {
  color: white;
  font-size: 44px;
  margin-bottom: 15px;
}

/* subtítulo */
.contacto p {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 35px;
}


/* ============================= */
/* TARJETA DEL FORMULARIO */
/* ============================= */

.form-contacto {
  max-width: 480px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;

  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);

  padding: 32px 28px;
  border-radius: 18px;

  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}


/* ============================= */
/* INPUTS ELEGANTES */
/* ============================= */

.input-group {
  position: relative;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.85);

  color: #1f2937;
  font-size: 15px;

  outline: none;
  transition: all 0.25s ease;
}

/* placeholder visible */
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #6b7280;
}

/* foco */
.input-group input:focus,
.input-group textarea:focus {
  border-color: #75F94D;
  box-shadow: 0 0 0 3px rgba(117, 249, 77, 0.25);
  background: white;
}

/* ocultamos labels flotantes porque sobre imagen no lucen bien */
.input-group label {
  display: none;
}


/* ============================= */
/* BOTÓN PREMIUM */
/* ============================= */

.btn-contacto {
  margin-top: 10px;
  padding: 16px;
  border-radius: 999px;
  border: none;

  background: linear-gradient(135deg, #75F94D, #5ed63b);
  color: #1f1f1f;

  font-size: 16px;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}

.btn-contacto:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.35);
}




/* end */




.features{padding-top:28px}
.cards{display:flex;gap:18px}
.card{background:#fff;padding:12px;border-radius:8px;flex:1;border:1px solid #eee}
.card img{width:100%;height:140px;object-fit:cover;border-radius:6px}
.card h3{margin:10px 0 6px}

.gallery{padding-top:28px}
.gallery h2{margin-bottom:12px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.grid img{width:100%;height:140px;object-fit:cover;border-radius:6px;cursor:pointer;border:1px solid #eee}

.contact{padding-top:28px}
#contactForm .row{display:flex;gap:12px}
#contactForm input, #contactForm textarea{width:100%;padding:10px;border-radius:6px;border:1px solid #ddd}
#contactForm textarea{min-height:120px}

.site-footer{padding:18px 0;text-align:center;color:var(--muted);font-size:13px}

/* Lightbox */
.lightbox{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.8);visibility:hidden;opacity:0;transition:opacity .18s ease,visibility .18s}
.lightbox[aria-hidden="false"]{visibility:visible;opacity:1}
.lightbox .lb-image{max-width:90%;max-height:80%;border-radius:6px}
.lb-close{position:absolute;right:18px;top:18px;background:transparent;border:0;color:white;font-size:32px;cursor:pointer}

.facebook-float{
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0,0,0,0.28);
  z-index: 110;
  transition: transform .2s ease, box-shadow .2s ease;
}

.facebook-float:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 28px rgba(0,0,0,0.35);
}

.facebook-float svg{
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@media (max-width:900px){.cards{flex-direction:column}.hero img{height:320px}.hero-overlay h1{font-size:24px}}

@media (max-width:600px){
  .facebook-float{
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .facebook-float svg{
    width: 27px;
    height: 27px;
  }
}

