body { 
width:100%;
font: 15px "Inter", sans-serif;
cursor: crosshair;
position: relative;
background-color: var(--clr-bg);
line-height:20px;
}

/* TRANSICIÓN ENTRE PÁGINAS */

.transicion-pagina {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #111111;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.22s ease-in-out;
}

.transicion-pagina.lista {
  opacity: 0;
}

.transicion-pagina.saliendo {
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .transicion-pagina {
    transition: none;
  }
}

*{
    margin: 0;
}

/*VARIABLES*/

:root{
    --clr1:#06535c;
    --clr2:#e5e3de;
    --clr3:#8a8986;
    --clr-accent:#7a2334;
    --clr-bg:#1c1c1c;
    --Font1:120px "Plain-Germanica", sans-serif;
    --Font2: 15px "Inter", sans-serif;
    --Font3:250px "Candelabra", sans-serif;
    --spacing:1.70;
}

/*FONTS*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@font-face {font-family:'Plain-Germanica'; src: url('https://dl.dropbox.com/scl/fi/wv9pucpdzagomwwae449w/Plain-Germanica.ttf?rlkey=qzyuhoz95m0slbfp5lwu86swj&st=qj1wh3c4&dl=0');}
@font-face {font-family:'Candelabra'; src: url('https://dl.dropbox.com/scl/fi/lwsh8vdj63pqvebbfjhc0/Candelabra.otf?rlkey=7g52iw4wkyu7rifjz8hkjnb7j&st=np2da555&dl=0');}


h1{
    font:var(--Font1);
    line-height: 100px;
    color:var(--clr2);
}

h4{
    padding:20px 0;
    font:var(--Font2);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 1px;
    text-transform: uppercase;
    color:var(--clr2);
}

h5{
  margin-bottom: 25px;
    font:var(--Font2);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color:var(--clr2);

}

html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #686868 #111111;
}

/* Scroll principal */
html::-webkit-scrollbar {
  width: 8px;
}

html::-webkit-scrollbar-track {
  background: #111111;
}

html::-webkit-scrollbar-thumb {
  background: #686868;
  border-radius: 10px;
  border: 2px solid #111111;
}

html::-webkit-scrollbar-thumb:hover {
  background: #888888;
}

html::-webkit-scrollbar-button {
  display: none;
}

/* Ocultar visualmente el scroll del proyecto */
.ctn-destacados {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ctn-destacados::-webkit-scrollbar {
  display: none;
}

/*BARRA DE NAVEGACIÓN*/

#cabecero{
 width: 100%;
  height: 80px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 30px;
  box-sizing: border-box;

}

.panel-menu {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.boton-menu {
  display: none;
}

/*MENU DE NAVEGACIÓN*/
ul{
    list-style: none;
    margin: 0;
    padding: 0;}
.menu{
  display: flex;
  align-items: center;
  gap: 25px;
}
.menu a{
    display: block;
    font-size:11px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    text-decoration: none;
    color: var(--clr2);
    white-space: nowrap;
}
 .menu a:hover{
    color: var(--clr1)!important;
    font-weight:700;
}

/*LOGO*/
#Logo-mn{
 position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: auto;
  margin: 0;
  transform: translate(-50%, -50%);
}

.enlace-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.enlace-logo #Logo-mn {
  position: static;
  display: block;
  transform: none;
}


/*SOCIAL MEDIA*/
.redes {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}


.redes a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr2);
  color: var(--clr-bg);
  text-decoration: none;
  font-size: 15px;
  transition: 0.2s ease;
}


.redes a:hover {
  background-color: var(--clr1);
  color: var(--clr-2);
  transform: translateY(-2px);
}

/*HEADER - INDEX SECCIÓN*/

header{
    width:100%;
    height:450px;
    padding:30px 0;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
}

quote{
    max-width:30%;
    min-width:450px;
    color:var(--clr2);
    text-align: center;
}

.Galeria {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 0;
  box-sizing: border-box;
  position: relative;
}

.proyecto {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.proyecto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

/* PORTAFOLIO: solo filtros. La galería reutiliza .Galeria y .proyecto del index. */
.filtros-portafolio {
  padding: 80px 20px 60px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.filtro {
  min-width: 124px;
  padding: 10px 22px;
  border: 2px solid var(--clr1);
  border-radius: 10px;
  background: transparent;
  color: var(--clr2);
  font: var(--Font2);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.filtro:hover,
.filtro.activo {
  background: var(--clr1);
  color: var(--clr2);
}

.portafolio .proyecto.oculto {
  display: none;
}

.proyecto:hover img {
  transform: scale(1.05);
}

.ctn-destacados {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  padding: 70px 5%;
  box-sizing: border-box;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(5px);
  transition: 0.3s;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.ctn-destacados:target,
.ctn-destacados.abierto {
  visibility: visible;
  opacity: 1;
}

html.modal-abierto,
body.modal-abierto {
  overflow: hidden;
}

.ctn-destacados > h2,
.ctn-destacados > p,
.ctn-destacados > img,
.ctn-destacados > h4 {
  display: block;
  width: min(1200px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.ctn-destacados > h2 {
  color: var(--clr2);
  margin-bottom: 10px;
}

.ctn-destacados > h4{
  color: var(--clr2);
}

.ctn-destacados > p {
  color: var(--clr2);
  margin: 60px auto;
  line-height: 30px;
}

.ctn-destacados > img {
  display: block;
  width: min(1200px, 100%);
  height: auto;
  margin: 0 auto;
}
.x {
  position: sticky;
  top: 18px;
  z-index: 1001;
  display: block;
  width: max-content;
  margin-left: auto;
  padding: 0;
  line-height: 1;
  color: var(--clr2);
  text-decoration: none;
  font-family: var(--Font2);
  font-weight: 800;
  font-size: 40px;
}

.x:hover { color:var(--clr1); }

/* =========================================
   INDEX — FILOSOFIA - AREAS
========================================= */

.indx-ctn {
  width: 100%;
  margin: 0;
  color: var(--clr2);
   background: linear-gradient(
    180deg,
    var(--clr-bg) 0%,
    var(--clr-bg) 68%,
    var(--clr1) 100%
  );
  display:flex;
flex-direction:column;
justify-content: center;
align-items: center;
position:relative;
}


.indx-fil {
  width: 80%;
  margin-top: 200px;
  margin-bottom:100px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.indx-fil h1 {
  width: 40%;
  margin: 0;
  padding: 0;
  font: var(--Font1);
  font-size: clamp(80px, 9vw, 145px);
  font-weight: normal;
  line-height: var(--spacing);
  color: var(--clr2);
}

.indx-fil-txt {
  width: 42%;
  max-width: 520px;
  padding-top: 14px;
  box-sizing: border-box;
}

.indx-fil-txt h4 {
  margin: 0 0 32px;
  padding: 0;
  font-style: italic;
  font-weight: 800;
  line-height: var(--spacing);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.indx-fil-txt p {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  color: var(--clr2);
  font-size: 15px;
  line-height: var(--spacing);
}


/* =========================================
   ÁREAS DE TRABAJO
========================================= */

.areas {
  width: 80%;
  height: auto;
  margin: 100px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;

}

.area {
  width: 25%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
 
}

.area span {
  display: block;
  margin: 0 0 30px;
  padding: 0;
  font: var(--Font3);
  font-size: 200px;
  font-weight: normal;
  line-height: var(--spacing);
  color: var(--clr2);
}

.area h4 {
  margin: 0 0 24px;
  padding: 0;
  color: var(--clr2);
  font-size: 16px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.area p {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--clr2);
  font-size: 15px;
  line-height: var(--spacing);

}

.areas__extras {
  width: 100%;
  margin: 90px 0 0;
  padding: 0;
  color: var(--clr2);
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  line-height: var(--spacing);
  letter-spacing: 0.7px;
  text-align: right;
  text-transform: uppercase;
}


/* INDEX — CONTACTO */

.contacto-index {
  width: 100%;
  height: 640px;
  margin-top:200px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
  color: var(--clr2);
  container-type: inline-size;
}

.contacto-index h4,
.contacto-index p,
.contacto-index a {
  position: relative;
  z-index: 2;
}

.contacto-index h4 {
  margin: 0 0 30px;
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contacto-index p {
  width: 80%;
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(14px, 0.9vw, 17px);
  line-height: var(--spacing);
}

.contacto-index a {
  display: inline-block;
  margin-top: 22px;
  color: var(--clr2);
  font-size: 42px;
  line-height: var(--spacing);
  text-decoration: none;
}

.contacto-index a:hover {
  color: var(--clr-accent);
  transform: translate(3px, -3px);
}
.contacto-word{
  width: 100%;
  margin-top:100px;
  z-index: 1;
  font: var(--Font1);
  font-size:380px;
  line-height: auto;
  white-space: nowrap;
  color: var(--clr-bg);
  pointer-events: none;
  user-select: none;
}

/* SOBRE MI -  2DA PAGINA */

.About-info{
width:100%;
min-height:460px;
margin: 150px 0;
display:flex;
justify-content: space-around;
}


.About-info .avatar{
  width:20%;
  height:450px;
  display:grid;
  place-items:center;
  
}

.About-info .avatar img{
  width:100%;
  height:450px;
  object-fit: cover;
  object-position: center;
clip-path: inset(0 round 32px);
}

.About-info .contenido-texto{
  width:45%;
  min-height:450px;
  margin-left:-19%;
  color: var(--clr2);
  display:flex;
  align-items: end;
  flex-direction: column;
}

.About-info .contenido-texto .habs{
  width:100%;
  height:auto;
  margin-top:20px;
  display:flex;
  justify-content: space-between;
}

.About-info .contenido-texto .habs ul{
  width:250px;
  height:auto;
}

/* =========================================
   PÁGINA DE CONTACTO
========================================= */

.pagina-contacto {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.pagina-contacto .contacto-pagina {
  width: min(1180px, calc(100% - 80px));
  margin: auto;
  padding: 90px 0 110px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(70px, 10vw, 150px);
  align-items: start;
  color: var(--clr2);
}

.contacto-intro {
  padding-top: 3px;
}

.contacto-kicker {
  margin-bottom: 40px;
  color: var(--clr1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.contacto-intro h1 {
  margin: 0 0 48px;
  font-size: clamp(82px, 8.2vw, 132px);
  line-height: 0.75;
  text-align: left;
}

.contacto-presentacion {
  max-width: 410px;
}

.contacto-presentacion p {
  margin: 0 0 16px;
  color: var(--clr2);
  font-size: 14px;
  line-height: 1.45;
}

.contacto-correo {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--clr1);
  color: var(--clr2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.contacto-correo:hover {
  color: var(--clr1);
}

.contacto-formulario {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 26px;
}

.campo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campo-completo {
  grid-column: 1 / -1;
}

.campo label {
  color: var(--clr2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--clr1);
  border-radius: 0;
  box-sizing: border-box;
  outline: none;
  background: transparent;
  color: var(--clr2);
  font: 13px "Inter", sans-serif;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.campo input,
.campo select {
  height: 48px;
}

.campo textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.4;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--clr2);
  background: rgba(6, 83, 92, 0.12);
}

.campo select {
  cursor: pointer;
}

.campo select option {
  background: var(--clr-bg);
  color: var(--clr2);
}

.campo textarea::placeholder {
  color: var(--clr3);
  opacity: 1;
}

.contacto-enviar {
  grid-column: 1 / -1;
  justify-self: end;
  min-width: 190px;
  margin-top: 6px;
  padding: 15px 24px;
  border: 1px solid var(--clr1);
  border-radius: 999px;
  background: var(--clr1);
  color: var(--clr2);
  font: 11px "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contacto-enviar:hover {
  background: var(--clr2);
  color: var(--clr-bg);
}

.pagina-contacto footer {
  margin-top: auto;
}


/* FOOTER */

footer {
 width: 100%;
  margin: 0;
  padding: 22px 0;
  position: relative;
  z-index: 3;
  background: var(--clr-bg);
  color: var(--clr2);
  font-size: 10px;
  text-align: center;
}


/* VERSIÓN MOVIL */

@media (max-width: 1100px) {
  #cabecero {
    height: 64px;
    padding: 0 20px;
  }

  .enlace-logo {
    position: static;
    margin-right: auto;
    transform: none;
  }

  #Logo-mn {
    width: 38px;
  }

  .boton-menu {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--clr2);
    font-size: 22px;
    cursor: pointer;
  }

  .panel-menu {
    position: absolute;
    top: 64px;
    left: 0;
    z-index: 10;
    width: 100%;
    padding: 28px 20px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    background: var(--clr-bg);
  }

  .panel-menu.abierto {
    display: flex;
  }

  .menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .menu a {
    font-size: 13px;
  }

  .redes {
    gap: 10px;
  }

  header {
    height: auto;
    min-height: 450px;
    padding: 40px 20px;
    box-sizing: border-box;
  }

  h1 {
    font-size: clamp(52px, 17vw, 90px);
    line-height: var(--spacing);
    text-align: center;
  }

  quote {
    width: 100%;
    max-width: 450px;
    min-width: 0;
  }

.Galeria {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

.proyecto {
  height: 450px;

}

  /* SOBRE MÍ */

  .About-info {
    width: 100%;
    height: auto;
    padding: 35px 24px 60px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .About-info .avatar {
    width: 100%;
    height: 360px;
    display: block;
  }

  .About-info .avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    clip-path: inset(0 round 32px);
  }

  .About-info .contenido-texto {
    width: 100%;
    height: auto;
    margin-left: 0;
    display: block;
  }

  .About-info .contenido-texto .habs {
    width: 100%;
    height: auto;
    margin-top: 35px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .About-info .contenido-texto .habs ul {
    width: 100%;
    height: auto;
  }

  .About-info .contenido-texto .habs h5 {
    margin-bottom: 12px;
  }

}
/* FILOSOFIA — VERSIÓN MÓVIL */

@media (max-width: 700px) {

  .indx-ctn {
    width: 100%;
    box-sizing: border-box;
  }

  .indx-fil {
    width: 80%;
    display: block;
  
  }

  .indx-fil h1 {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: clamp(68px, 20vw, 100px);
    line-height: var(--spacing);
    text-align: left;
  }

  .indx-fil-txt {
    width: 100%;
    max-width: none;
  }

  .indx-fil-txt h4 {
    width: 100%;
    margin:35px 0;
    font-size: 13px;
    line-height: 1.3;
  }

  .indx-fil-txt p {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: var(--spacing);
  }

}

/* INDEX AREAS —  MÓVIL */
@media (max-width: 1000px){

/* ÁREAS DE TRABAJO */

  .areas {
    width: 80%;
    box-sizing: border-box;
    overflow: visible;
    margin:80px 0;
  }

  .areas-ctn {
    position: static;
    width: 86%;
    height: auto;
    margin: 0 auto;
  }

  .ar-quote {
    position: static;
    width: 100%;
    margin: 0 0 60px;
  }

  .ar-quote p {
    width: 100%;
    max-width: none;
    margin: 0;
    font-size: 13px;
    line-height: var(--spacing);
    overflow-wrap: break-word;
  }

  .areas-sc {
    position: static;
    width: 100%;
    height: auto;
    display: block;
  }

  .area {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 0 60px;
    display: grid;
    grid-template-columns: clamp(65px, 18vw, 90px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    align-content: start;
  }

  .area span {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    font: var(--Font3);
    font-size: 100px;
    line-height: var(--spacing);
    color: var(--clr2);
  }

  .area h3,
  .area h4 {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    width: 100%;
    margin: 2px 0 14px;
    padding: 0;
    font-size: 13px;
    line-height: var(--spacing);
  }

  .area p {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
      font-size: 15px;
  line-height: var(--spacing);
    overflow-wrap: break-word;
  }

  .areas__extras {
    position: static;
    width: 100%;
    margin: 5px 0 0;
    font-size: 12px;
    line-height: var(--spacing);
    text-align: left;
  }

}

/* CONTACTO —  MÓVIL */

@media (max-width: 900px) {
  .pagina-contacto .contacto-pagina {
    width: min(100% - 48px, 680px);
    padding: 70px 0 80px;
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .contacto-intro h1 {
    font-size: clamp(76px, 18vw, 118px);
  }

  .contacto-presentacion {
    max-width: 560px;
  }
}

@media (max-width: 600px) {
  .pagina-contacto .contacto-pagina {
    width: calc(100% - 40px);
    padding: 55px 0 70px;
    gap: 55px;
  }

  .contacto-intro h1 {
    margin-bottom: 38px;
    font-size: clamp(66px, 21vw, 94px);
  }

  .contacto-formulario {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .campo-mitad,
  .campo-completo {
    grid-column: 1;
  }

  .contacto-enviar {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
  }
}
