/* styles.css */
:root{
  --bg: #2a87a7;        /* teal similar a la imagen */
  --navText: #eaf6fb;
  --navHover: #ffd166;  /* hover color */
  --panel: #020B3E;     /* verde/gris del bloque */
  --shadow: 0 18px 28px rgba(0,0,0,.35);
  --shadowSoft: 0 16px 26px rgba(0,0,0,.28);
  --white: #ffffff;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--white);
}

/* Layout base */
.wrapper{
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.container{
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* NAV */
header{
  padding: 18px 0;
}

.navbar{
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  font-size: 22px;
}

.navbar a{
  color: var(--navText);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.navbar a:hover{
  color: var(--bg);
  background: var(--navHover);
  transform: translateY(-1px);
}

.navbar a.active{
  color: var(--bg);
  background: rgba(255,255,255,.85);
}

/* HERO (como tu imagen) */
.hero{
  flex: 1;
  display: grid;
  place-items: center;
  padding: 30px 0 60px;
}

.hero-grid{
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 30px;
}

/* Panel izquierdo */
.title-panel{
  background: var(--panel);
  box-shadow: var(--shadowSoft);
  padding: 48px 34px;
  width: min(700px, 100%);
  margin-left: 110px;
  border-radius: 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.title-panel .script-title{
  font-size: clamp(102px, 12vw, 165px);
  font-weight: 700;
  color: #FFCC00;
  font-family: "Brush Script MT", "Comic Sans MS", cursive;
  line-height: .85;
  margin: 0 0 28px 0;   /* ← MÁS SEPARACIÓN */
 
text-shadow: 0 3px 0 rgba(0,0,0,.15);
}


.title-panel .name{
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: 1px;
  font-weight: 700;
}

/* Imagen derecha */
.art-frame{
  display: flex;
  justify-content: center;
}

.art-frame img{
  width: 420px;
  height: 560px;
  object-fit: cover;
  box-shadow: var(--shadow);
  border-radius: 2px;
  cursor: pointer;

  opacity: 1;
  transition: 
    opacity .35s ease-in-out,
    transform .25s ease,
    filter .25s ease;
}
.art-frame img:hover{
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.06);
}

/* Páginas internas (contenido) */
.page{
  padding: 26px 0 70px;
}

.page-card{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadowSoft);
}

.page-card h1{
  margin-top: 0;
  font-size: 34px;
}

.page-card p{
  font-size: 18px;
  line-height: 1.6;
  opacity: .95;
}

/* Responsive */
@media (max-width: 900px){
  .navbar{ font-size: 18px; gap: 16px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .title-panel{ text-align: center; }
}

/* Botón Download CV debajo de la imagen */
.art-frame{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* para que el botón quede abajo */
  gap: 14px;              /* separación entre imagen y botón */
}

.cv-btn{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .4px;
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.cv-btn:hover{
  transform: translateY(-2px);
  background: #FFCC00; /* tu color */
  color: #2a87a7;      /* combina con el fondo */
}

/* ABOUT ME – imagen */
.about-image{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.about-image img{
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;

  border-radius: 18px;
  border: 8px solid #ffffff;
  background: #ffffff;

  box-shadow: 0 18px 30px rgba(0,0,0,.35);
}
/* Botón Back */
.back-container{
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  padding-left: 10%;   /* ← lo mueve 10% hacia el centro */
}
.back-btn{
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
  transition: background-color .2s ease, transform .2s ease;
}

.back-btn:hover{
  background: #FFCC00;     /* tu amarillo */
  color: #2a87a7;          /* color del fondo */
  transform: translateY(-1px);
}

/* EXPERIENCE – imagen ajustada al monitor */
.experience-image{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.experience-image img{
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;

  transform: scale(1.1);
  transform-origin: center;

  border-radius: 18px;
 background: #ffffff;

  box-shadow: 0 18px 30px rgba(0,0,0,.35);

  border: 8px solid #ffffff;   /* ← MARCO BLANCO */
  background: #ffffff;         /* evita transparencias raras */

  box-shadow: 0 18px 30px rgba(0,0,0,.35);
}

/* CONTACT – imagen */
.contact-image{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.contact-image img{
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;

  margin: 0 auto;            /* ← CLAVE: centra la imagen */
  display: block;            /* ← evita alineación izquierda */
  border-radius: 18px;
  border: 8px solid #ffffff;
  background: #ffffff;

  box-shadow: 0 18px 30px rgba(0,0,0,.35);
}
/* CONTENEDOR RELATIVO */
.contact-wrapper{
  position: relative;
  display: inline-block;
  margin: 0 auto;
  z-index: 1;
}

.contact-wrapper img{
  position: relative;
  z-index: 1;
  display: block;
}

/* BOTONES INVISIBLES */
.hotspot{
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
}

/* POSICIONES */
.email{ left: 15%;  top: 45%; width: 10%; height: 15%; }
.phone{ left: 28%; top: 45%; width: 10%; height: 15%; }
.mobile{ left: 42%; top: 45%; width: 10%; height: 15%; }
.web{ left: 56%; top: 45%; width: 10%; height: 15%; }
.location{ left: 75%; top: 45%; width: 12%; height: 18%; }

/* MODAL */
.modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content{
  position: relative;   /* ← CLAVE ABSOLUTA */
  background: white;
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  text-align: center;
  font-size: 18px;
}
.close{
  position: absolute;
  top: 6px;
  right: 8px;
  cursor: pointer;
  font-size: 22px;
 font-weight: 700;
  color: #2a87a7;
  z-index: 9999;   /* ← CLAVE */
  line-height: 1;

  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;

  background: rgba(42,135,167,.12);
  color: #2a87a7;
}
.close:hover{
  background: rgba(42,135,167,.22);
}

.content-box {
  position: fixed;            /* mejor que absolute para modales */
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  z-index: 10;
}.hidden {
  display: none;
}

/* la imagen SE ADAPTA al marco, NO lo agranda */
.skills-img{
  width: 100%;
  height: auto;
  display: block;
  max-height: 65vh;     /* para que nunca estire el cuadro */
  object-fit: contain;
}.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}
/* SKILLS – imagen con la misma medida visual que Experience */
.skills-image{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.skills-image img{
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;

  border-radius: 18px;
  border: 8px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(0,0,0,.35);
}

/* MISMA MEDIDA QUE EXPERIENCE */
.experience-box{
  background: #fff;
  padding: 20px;
  width: 55%;
  max-width: 650px;
  max-height: 75vh;
  overflow: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  position: relative;
}

.education-card{
  padding: 30px;
}

.page-title{
  margin: 0 0 8px 0;
  font-size: 34px;
}

.page-subtitle{
  margin: 0 0 18px 0;
  opacity: .85;
  line-height: 1.4;
}

.pdf-btn{
  display: inline-block;
  margin: 10px 0 20px 0;
  padding: 12px 26px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.pdf-btn:hover{
  background: #d4af37;
  color: #111;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.pdf-preview iframe{
  width: 100%;
  height: 70vh;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(0,0,0,.20);
}

.page-subtitle-es{
  font-size: 75%;   /* 25% más pequeño que el inglés */
  line-height: 1.6;
  opacity: .8;
  margin-top: 12px;
}
.lang-toggle{
  display: inline-flex;
  gap: 8px;
  margin: 10px 0 18px 0;
  padding: 6px;
  background: rgba(255,255,255,.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.lang-btn{
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .4px;
}

.lang-btn.active{
  background: #111;
  color: #fff;
}

.lang-block.hidden{
  display: none;
}

/* Español 25% más pequeño */
.page-subtitle-es{
  font-size: 75%;
  line-height: 1.65;
  opacity: .88;
}
.services-menu{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;  /* ← ahora quedan centrados */
}
.services-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;
  border-radius: 999px;

  background: rgba(0,0,0,.22);              /* diferente al Back */
  border: 1px solid rgba(255,255,255,.25);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;

  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.services-pill:hover{
  transform: translateY(-1px);
  background: rgba(255,204,0,.95);          /* tu amarillo */
  color: #2a87a7;                            /* tu fondo */
}

/* PORTFOLIO – PDF MENU */
.portfolio-pdf-menu{
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.portfolio-pdf-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 12px 22px;
  border-radius: 999px;

  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.25);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .3px;

  box-shadow: 0 10px 18px rgba(0,0,0,.25);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.portfolio-pdf-btn:hover{
  transform: translateY(-2px);
  background: #FFCC00;
  color: #2a87a7;
}

/* Placeholder visual */
.portfolio-placeholder{
  margin-top: 30px;
  padding: 30px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.35);
  text-align: center;
  opacity: .85;
}
/* PANEL HOME – 40% más bajo, mismo ancho, textos centrados */
.hover-panel{
  height: 30%;           
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: all .35s ease;

  display: grid;
  place-items: center;   /* centra horizontal y vertical */
}

/* Ambos textos ocupan el mismo centro */
.hover-panel .script-title,
.hover-panel .name{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: all .35s ease;
}

/* Estado inicial */
.hover-panel .script-title{
  opacity: 1;
  transform: translateY(0);
}

.hover-panel .name{
  opacity: 0;
  transform: translateY(10px);
}

/* Hover: se intercambian */
.hover-panel:hover .script-title{
  opacity: 0;
  transform: translateY(-10px);
}

.hover-panel:hover .name{
  opacity: 1;
  transform: translateY(0);
}
/* ===== Creative Projects Gallery ===== */
.gallery-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(0,0,0,.22);
  transition: transform .2s ease;
}

.gallery-item:hover{
  transform: translateY(-3px);
}

.gallery-item img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 1100px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-item img{ height: 160px; }
}
@media (max-width: 420px){
  .gallery-grid{ grid-template-columns: 1fr; }
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 24px;
}

.lightbox img{
  max-width: min(1100px, 95vw);
  max-height: 85vh;
  border-radius: 18px;
  box-shadow: 0 25px 45px rgba(0,0,0,.45);
}

.hidden{ display: none; }

/* BOTÓN DIFERENTE PARA ADDITIONAL PDF */
.portfolio-pdf-btn.alt-btn{
  background: transparent;
  border: 2px dashed #2ecc71;   /* verde elegante */
  color: #2ecc71;
  box-shadow: none;
}

.portfolio-pdf-btn.alt-btn:hover{
  background: rgba(46, 204, 113, 0.15);
  color: #ffffff;
  border-color: #ffffff;
}
/* BOTÓN DIFERENTE PARA ADDITIONAL PDF – FONDO BLANCO */
.portfolio-pdf-btn.alt-btn{
  background: #ffffff;
  border: 2px dashed #2ecc71;   /* verde elegante */
  color: #2ecc71;
  box-shadow: 0 8px 16px rgba(0,0,0,.15);
}

.portfolio-pdf-btn.alt-btn:hover{
  background: #2ecc71;
  color: #ffffff;
  border-color: #ffffff;
}
/* ===== Additional Videos (centrados) ===== */
.video-grid{
  margin-top: 24px;
  display: flex;
  justify-content: center;   /* centra el grupo completo */
  gap: 24px;
  flex-wrap: wrap;          /* permite que bajen de línea en pantallas pequeñas */
}
.video-card{
  background: rgba(0,0,0,.18);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 22px rgba(0,0,0,.25);
  width: 320px;   /* mejor para que 4 quepan en desktop */
  max-width: 100%;
}
.video-card video{
  width: 100%;
  border-radius: 12px;
  display: block;
}

.video-caption{
  margin-top: 8px;
  font-size: 14px;
  opacity: .85;
  text-align: center;
}
.highlight-subtitle{
  text-align: center;
  font-weight: 700;
  color: #0b2a4a;   /* azul marino elegante */
}
/* ===== Social Media Gallery ===== */
/* --- Social Media gallery: centrado dentro del botón --- */
.social-row{
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  align-items: center;
}

.gallery-item{
  width: 340px;
  height: 360px;           /* alto del cuadro */
  border: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.15);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  cursor: pointer;

  display: flex;          /* 👈 clave para centrar */
  align-items: center;   /* vertical */
  justify-content: center; /* horizontal */

  overflow: hidden;
}

.gallery-item img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* 👈 evita que se corte */
  object-position: center;
  display: block;
}
.marketing-section{
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
}

.lang-toggle{
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin-bottom: 16px;
}

.lang-btn{
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  background: transparent;
  color: rgba(255,255,255,.9);
}

.lang-btn.is-active{
  background: rgba(0,0,0,.55);
  color: #fff;
}

.lang-block{
  line-height: 1.6;
  text-align: justify;   
  max-width: none;      
}
.is-hidden{
  display: none;
}
.mk-text{
  text-align: justify;
}
/* Justificar todo el texto de Marketing & Social Media */
.page-subtitle,
.page-subtitle-es,
.lang-block {
  text-align: justify;
  hyphens: auto; /* mejora la lectura en líneas largas */
}
/* ===== PDF Submenu ===== */
.pdf-submenu{
  margin-top: 12px;
  background: rgba(0,0,0,.35);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 260px;
}

.pdf-submenu a{
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.1);
  transition: background .2s ease, transform .2s ease;
}

.pdf-submenu a:hover{
  background: #f1c40f;
  color: #08324b;
  transform: translateX(4px);
}
/* Botón PDF MUCHO más bajo (fuerza altura) */
.small-pdf-btn{
  height: 60px;              
  padding: 0 14px !important;
  font-size: 14px;
  line-height: 22px;       /* centra el texto verticalmente */
  border-radius: 4px;
  min-height: 0 !important;
}
/* ========== Mobile fixes ========== */
@media (max-width: 768px) {
  body {
    padding: 16px;
  }

  .container {
    width: 100%;
    padding: 0 12px;
  }

  /* El recuadro grande (card) */
  .page-card {
    padding: 18px !important;
    border-radius: 18px;
  }

  /* Títulos */
  .page-title {
    font-size: 2rem !important;
    line-height: 1.1;
  }

  /* Texto largo */
  .page-subtitle,
  .page-subtitle-es,
  .page-text {
    font-size: 1rem !important;
    line-height: 1.55;
  }

  /* Menús/botones en fila -> que bajen en móvil */
  .button-row,
  .sub-menu,
  .menu-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .btn,
  .menu-btn,
  .sub-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Galerías 2x2 -> 1 columna en móvil */
  .gallery,
  .grid-2,
  .two-col {
    grid-template-columns: 1fr !important;
  }

  /* Imágenes no se salgan */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Videos responsivos */
  video {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Botón back más cómodo */
  .back-container {
    justify-content: center !important;
  }

/* ===== NAV responsive (Android/Chrome) ===== */
@media (max-width: 768px) {
  header .container {
    padding: 0 12px;
  }

  /* Tu nav */
  .navbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;  /* 2 columnas */
    gap: 12px 18px;
    justify-items: center;
    align-items: center;
    padding: 14px 0;
  }

  .navbar a {
    font-size: 18px !important;
    line-height: 1.1;
    text-align: center;
    white-space: normal;   /* permite saltos */
  }

  /* Si alguno queda muy largo, baja un poquito */
  .navbar a[href*="education"] {
    font-size: 16px !important;
  }
/* ===== NAV responsive (Android/Chrome) ===== */
@media (max-width: 768px) {
  header .container {
    padding: 0 12px;
  }

  /* Tu nav */
  .navbar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;  /* 2 columnas */
    gap: 12px 18px;
    justify-items: center;
    align-items: center;
    padding: 14px 0;
  }

  .navbar a {
    font-size: 18px !important;
    line-height: 1.1;
    text-align: center;
    white-space: normal;   /* permite saltos */
  }

  /* Si alguno queda muy largo, baja un poquito */
  .navbar a[href*="education"] {
    font-size: 16px !important;
  }
}