/* =========================================================
   FUENTES LOCALES
   ========================================================= */
@font-face{
  font-family: "Great Vibes";
  src: url("../media/fonts/GreatVibes-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Libre Baskerville";
  src: url("../media/fonts/LibreBaskerville-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: "Libre Baskerville";
  src: url("../media/fonts/LibreBaskerville-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   VARIABLES
   ========================================================= */
:root{
  --font-title: "Great Vibes", cursive;
  --font-body: "Libre Baskerville", serif;

  --bg: #ffffff;
  --text: #111;

  --nav-bg: #ffbe30;
  --nav-text: #070707;

  /* FAQ */
  --clr-white: #fff;
  --clr-gold: #c59d5f;
  --clr-grey-1: hsl(209, 61%, 16%);
  --clr-grey-5: hsl(210, 22%, 49%);
  --radius: 0.5rem;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
  --fixed-width: 620px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*,
*::before,
*::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  text-align: center;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);

  /* Capas estables (evita que particles se ponga delante en mobile) */
  position: relative;
  isolation: isolate;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

video{
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   PARTICLES (SIEMPRE ATRÁS)
   ========================================================= */
#particles-js{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#particles-js canvas{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Todo el contenido por delante del fondo */
.header,
.nav,
.main,
.section,
.questions,
footer{
  position: relative;
  z-index: 1;
}

/* =========================================================
   HEADER
   ========================================================= */
.header{
  padding: 5px 20px;
  background-color: #ffffff;
  margin-bottom: 2px;
}

.header-inner{
  max-width: 100%;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.logo{
  width: 120px;
  height: auto;
  opacity: 0.95;
}

.titulo{
  font-family: var(--font-title);
  font-size: 5rem;
  margin-bottom: 8px;
}

.subtitulo{
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* =========================================================
   NAV
   ========================================================= */
.nav{
  background: var(--nav-bg);
  padding: 14px 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 15px;
}

.nav a{
  color: var(--nav-text);
  text-decoration: none;
  margin: 0 10px;
}

.nav a:hover{
  text-decoration: underline;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.main{
  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
  padding: 0 16px;
}

.section{
  padding: 20px 0;
}

/* Títulos de secciones */
.section h2{
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  color: var(--nav-bg);
}

/* =========================================================
   TEXT BLOCK (Filosofía / Sobre mí / Contacto)
   ========================================================= */
.text-block{
  max-width: 90ch;
  margin: 50px auto;
  padding: 28px;
  background: rgba(255, 255, 255, 0.39);
  backdrop-filter: blur(4px);
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.text-block p{
  margin: 0 0 1.1rem 0;
   hyphens: none; 
}

.text-block p:last-child{
  margin-bottom: 0;
}
/* Títulos dentro de text-block */
.text-block .subtitulo{
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.text-block .presentacion{
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.text-block .texto{
  text-align: center;
  font-size: 1rem;
  margin-bottom: 16px;
}


/* ===============================
   SOBRE MI – TEXTO + FOTO EN FILA
================================ */

.sobre-mi-row{
  display: flex;
  align-items: center;   /* clave */
  gap: 40px;
  max-width: 1200px;     /* antes 1100 */
  margin: 0 auto;
  padding: 20px 40px;    /* más borde lateral */
}


/* El recuadro de texto */
.sobre-mi-card{
  flex: 1.4;
   padding: 34px;         /* text-block tenía margin auto, lo anulamos */
}

/* Columna de la foto */
.sobre-mi-foto{
  flex: 0 0 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sobre-mi-foto img{
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.sobre-mi-row h2{
  max-width: 700px;
  margin: 0 auto 20px auto;
  text-align: left;
}



/* =========================================================
   SERVICIOS (scroll horizontal)
   ========================================================= */
.servicios{
  text-align: center;
}

.servicios-intro{
  max-width: 100%;
  margin: 0 auto 16px;
}

.servicios-grid{
  display: flex;
  gap: 20px;
  margin-top: 20px;

  justify-content: center;   /* <-- AÑADIR */
  align-items: stretch;      /* opcional */

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}


.servicio-card{
  position: relative;
  flex: 0 0 320px;
  height: 390px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  scroll-snap-align: center;
}

.servicio-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.servicio-overlay{
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.884);
  color: #000000;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;

  opacity: 0;
  transition: opacity 0.60s ease;
}

.servicio-overlay h3{
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.servicio-overlay ul{
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* =========================================================
   ENFOQUES / FAQ (ACCORDION) — BLOQUE LIMPIO
   Colores: texto + acento
   ========================================================= */

:root{
  --enf-text: #111;      /* texto principal */
  --enf-accent: #ffbe30; /* acento (icono / detalles) */
}

/* Contenedor general de la sección (recuadro como los otros) */
#enfoques{
  max-width: 90ch;
  margin: 50px auto;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Título de sección */
#enfoques .title h2{
  margin: 0 0 22px 0;
  text-align: center;
  color: var(--enf-text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Ancho interno: ocupa el recuadro sin “fixed width” */
#enfoques .section-center{
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Cada item (card) */
#enfoques .question{
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 14px 0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Header de cada item */
#enfoques .question-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Texto del título del item */
#enfoques .question-title p{
  margin: 0;
  color: var(--enf-text);
  font-weight: 700;
  line-height: 1.3;
}

/* Botón del + / - */
#enfoques .question-btn{
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--enf-accent);
}

/* Respuesta */
#enfoques .question-answer{
  display: none;
  margin-top: 12px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.12);
}

#enfoques .show-text .question-answer{
  display: block;
}

/* Texto de respuesta */
#enfoques .question-answer p{
  margin: 0;
  color: var(--enf-text);
  line-height: 1.7;
  text-align: justify;
  hyphens: none; /* evita cortes raros */
}

/* Iconos +/- (se mantiene tu lógica actual) */
#enfoques .minus-icon{ display: none; }
#enfoques .show-text .minus-icon{ display: inline; }
#enfoques .show-text .plus-icon{ display: none; }



/* =========================================================
   CONTACTO / REDES
   ========================================================= */

#contacto{
  text-align: center;
}

.contacto-iconos{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;      /* evita cortes en móvil */
  gap: 32px;
  margin-top: 26px;
}

/* Íconos */
.contacto-iconos a{
  font-size: 4rem;     /* antes 7rem → demasiado grande */
  color: #111;
  text-decoration: none;

  width: 70px;
  height: 70px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover elegante */
.contacto-iconos a:hover{
  color: #ffbe30;        /* mismo acento que nav */
  transform: scale(1.08);
}



/* =========================================================
   FORMULARIO CONTACTO
   ========================================================= */

.contacto-form{
  max-width: 90ch;
  margin: 10px auto 0;
  text-align: center;
}

.contacto-form label{
  display: block;
  font-weight: 700;
  color: #111;
  font-size: 0.95rem;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea{
  width: 100%;
  margin-top: 8px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 1rem;
  color: #111;
  outline: none;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus{
  border-color: #ffbe30;
  box-shadow: 0 0 0 3px rgba(255,190,48,0.25);
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-full{
  margin-bottom: 18px;
}

.btn-enviar{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
  background: #000000;
  color: #ffe058;
  font-weight: 800;
  cursor: pointer;
}

.btn-enviar:hover{
  filter: brightness(0.95);
}

#contacto > p{
  text-align: center;
}



@media (max-width: 768px){

  /* Layout general */
  .main{
    max-width: 95%;
    padding: 0 12px;
  }

  .section{
    padding: 16px 0;
  }

  /* Header / título */
  .titulo{
    font-size: 3rem;
    line-height: 1;
  }

  .subtitulo{
    font-size: 0.95rem;
  }

  /* Nav: que no rompa y quede centrado */
  .nav{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 12px 10px;
  }
  .nav a{
    margin: 0;
  }

  /* Text blocks: usar más ancho en móvil */
  .text-block{
    margin: 18px 10px;
    padding: 20px;
    max-width: 100%;
  }

  /* Evitar “cortes” raros de palabras en móvil */
  .text-block p,
  #enfoques .question-answer p{
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
  }

  /* Más aire entre párrafos si usás varios <p> */
  .text-block p{
    line-height: 1.75;
  }

  /* SOBRE MI fila: apilar y centrar bien */
  .sobre-mi-row{
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 12px 10px;
  }
  .sobre-mi-card{
    margin: 0;
    width: 100%;
  }
  .sobre-mi-foto{
    width: 100%;
    justify-content: center;
  }
  .sobre-mi-foto img{
    max-width: 320px;
    width: 100%;
  }

  /* ENFOQUES: que no se vea apretado */
  #enfoques{
    margin: 18px 10px;
    padding: 20px;
    max-width: 100%;
  }
  #enfoques .question{
    padding: 14px 14px;
  }
  #enfoques .question-title p{
    font-size: 0.95rem;
  }

  /* SERVICIOS: que SI se vean las cards (scroll horizontal bien) */
  .servicios-grid{
    justify-content: flex-start; 
    padding-left: 12px;
    padding-right: 12px;
    gap: 14px;
  }

  .servicio-card{
    flex: 0 0 86vw;     /* ocupa casi toda la pantalla */
    height: 360px;      /* ajustá si querés más alto/bajo */
  }

  .servicio-overlay{
    padding: 16px;
  }

  .servicio-overlay ul{
    font-size: 0.92rem;
    line-height: 1.4;
  }

  /* Contacto: iconos más chicos y con wrap */
  .contacto-iconos{
    gap: 18px;
  }
  .contacto-iconos a{
    font-size: 2.4rem;
    width: 56px;
    height: 56px;
  }

  /* Formulario: una columna */
  .form-row{
    grid-template-columns: 1fr;
    gap: 14px;
  }

}

/* =========================================================
   SERVICIOS – HOVER DESKTOP vs TÁCTIL
   ========================================================= */

/* Desktop (mouse real): overlay aparece al hover */
@media (hover: hover) and (pointer: fine){
  .servicio-card:hover .servicio-overlay{
    opacity: 1;
  }

  .servicio-card:hover img{
    opacity: 0.25;
  }
}
/* =========================================================
   SERVICIOS – HOVER DESKTOP vs TÁCTIL
   ========================================================= */

/* Desktop (mouse real): overlay aparece al hover */
@media (hover: hover) and (pointer: fine){
  .servicio-card:hover .servicio-overlay{
    opacity: 1;
  }

  .servicio-card:hover img{
    opacity: 0.25;
  }
}

/* Táctil real: overlay siempre visible */
@media (hover: none) and (pointer: coarse){
  .servicio-overlay{
    opacity: 1;
    background: rgba(255,255,255,0.92);
    color: #111;
  }

  .servicio-card img{
    opacity: 0.25;
  }
}
