/* === VARIABLES DE TEMA === */
:root {
  --bg: #fff;
  --fg: #111;
  --btn-bg: rgba(0,0,0,0.05);
  --btn-fg: #111;
  --menu-bg: rgba(255,255,255,0.82);
}
[data-theme="dark"] {
  --bg: #111;
  --fg: #eee;
  --btn-bg: rgba(255,255,255,0.1);
  --btn-fg: #eee;
  --menu-bg: rgba(40,40,40,0.82);
}

/* === RESET GLOBAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === HTML / BODY GENERALES === */
html, body {
  font-family: 'Oswald', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-y: auto;
}

/* === BOTÓN DE CAMBIO DE TEMA === */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: none;
  padding: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 0.25rem;
  z-index: 1100;
}

/* === LANDING PAGE (SIN SCROLL) === */
body:not(.trabajos-page) {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}
body:not(.trabajos-page) .logo {
  position: absolute; 
  top: 20px; 
  left: 20px;
  height: 200px; 
  z-index: 10;
}
/* ← Aquí cambia sólo la ruta del círculo: */
body:not(.trabajos-page) main {
  position: relative;
  width: 100%;
  height: 100%;
  /* Antes tenías url('/img/circulo.png').
     Ahora debe ser url('../img/circulo.png') para que funcione
     tanto al cargar desde index.html como desde /trabajos/xxxxx.html */
  background: url('../img/circulo.png') no-repeat center center;
  background-size: 45vw auto;
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
}
body:not(.trabajos-page) .tagline {
  position: absolute;
  top: calc(50% + 22.5vw + 1rem);
  width: 100%; 
  text-align: center;
  font-size: 1rem; 
  user-select: none;
}
body:not(.trabajos-page) .menu {
  position: absolute;
  top: 20%;
  left: 48%;  /* Menú portada a la derecha */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
body:not(.trabajos-page) .menu a {
  text-decoration: none; 
  font-size: 9rem;
  color: var(--fg); 
  transition: color 0.2s;
  user-select: none; 
  line-height: 1;
}
body:not(.trabajos-page) .menu a:hover {
  color: #ff6600;
}

/* Imagen decorativa portada, parte inferior izquierda */
.decoracion-index {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 5;
  width: 210px; 
  max-width: 32vw;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
}
@media (max-width: 600px) {
  .decoracion-index {
    width: 100px;
    max-width: 50vw;
    opacity: 0.6;
  }

}

/* === TRABAJOS PAGE: HEADER FIJO Y LISTADO === */
body.trabajos-page {
  overflow-y: auto;
}
body.trabajos-page .sticky-header {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%;
  background: transparent; 
  box-shadow: none;
  display: flex; 
  align-items: center;
  justify-content: center; 
  padding: 2rem 0;
  z-index: 1000;
}
body.trabajos-page .sticky-header .logo {
  position: absolute; 
  top: 20px; 
  left: 20px;
  height: 200px; 
  z-index: 1001;
}
body.trabajos-page .sticky-header .top-nav {
  display: flex;
  gap: 2rem;
  font-size: 1.5rem;
  background: var(--menu-bg);
  border-radius: 2rem;
  padding: 1.2rem 2.5rem 1.2rem 2.5rem;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08);
  z-index: 1101;
  backdrop-filter: blur(2px);
}
body.trabajos-page .sticky-header .top-nav a {
  text-decoration: none; 
  color: var(--fg);
  transition: color 0.2s;
}
body.trabajos-page .sticky-header .top-nav a:hover {
  color: #ff6600;
}
body.trabajos-page main {
  margin-top: calc(200px + 2rem);
}

/* === AOS INICIALIZACIÓN === */
[data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
}

/* === LISTA DE TRABAJOS === */
.trabajos-list {
  display: flex; 
  flex-direction: column; 
  gap: 0;
  max-width: 800px; 
  margin: 0 auto 4rem; 
  padding: 0 1rem;
}
.trabajo-image-wrapper {
  position: relative; 
  width: 100%; 
  height: 300px;
  overflow: hidden; 
  border-radius: 1rem;
}
.normal-img, .hover-img {
  position: absolute; 
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  transition: opacity 0.3s;
}
.hover-img { opacity: 0; }
.trabajo-item:hover .hover-img { opacity: 1; }
.trabajo-item:hover .normal-img { opacity: 0; }

/* === FOOTER HORIZONTAL 3 COLUMNAS, TODO CENTRADO === */
.footer-main {
  width: 100%;
  min-height: 72px;
  background: url('/img/footer-bg.jpg') center/cover no-repeat, rgba(255,255,255,0.86);
  color: #222;
  border-top: 1px solid #f3f3f3;
  box-shadow: 0 -2px 18px 0 rgba(0,0,0,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0;
  font-size: 1rem;
  gap: 0;
  position: relative;
}
.footer-col {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: 0 1.2rem;
}
.footer-btn {
  background: #ff6600;
  color: #fff;
  padding: 0.55rem 1.35rem;
  border: none;
  border-radius: 2rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.07);
  white-space: nowrap;
}
.footer-btn:hover {
  background: #e65a00;
  color: #fff;
}
.footer-mail {
  font-family: monospace;
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 0.2rem;
  word-break: break-all;
}
.footer-disclaimer {
  font-size: 0.97rem;
  opacity: 0.7;
  margin-top: 0.2rem;
  line-height: 1.45;
  max-width: 340px;
  word-break: break-word;
}
[data-theme="dark"] .footer-main {
  background: url('/img/footer-bg.jpg') center/cover no-repeat, rgba(40,40,40,0.93);
  color: #eee;
  border-top: 1px solid #222;
}

/* Responsive: apilar en móvil */
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    align-items: stretch;
    padding: 1.1rem 0.5rem;
    text-align: center;
  }
  .footer-col {
    justify-content: center !important;
    text-align: center !important;
    padding: 0.2rem 0;
  }
  .footer-disclaimer {
    max-width: 100%;
  }
}

/* === CONTACTO FORMULARIO === */
.contacto-section {
  max-width: 420px;
  margin: 2.5rem auto 2.5rem auto;
  padding: 1.2rem 1.3rem 1.3rem 1.3rem;
  background: rgba(255,255,255,0.82);
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.03);
  text-align: center;
}
[data-theme="dark"] .contacto-section {
  background: rgba(40,40,40,0.88);
}

.contacto-section h1 {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.contacto-section p {
  font-size: 1.02rem;
  margin-bottom: 1.1rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.2rem;
}
.contact-form label {
  font-size: 0.98rem;
  text-align: left;
  margin-bottom: 0.07rem;
  color: var(--fg);
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  font-family: 'Oswald', sans-serif;
  font-size: 0.97rem;
  padding: 0.4rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #222;
  resize: none;
  box-shadow: 0 1px 5px 0 rgba(0,0,0,0.02);
  transition: border-color 0.2s;
  margin-bottom: 0.25rem;
}
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: #232323;
  color: #eee;
  border: 1px solid #444;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff6600;
  outline: none;
}
.contact-form button.footer-btn {
  margin-top: 0.4rem;
  font-size: 1.06rem;
  font-weight: bold;
  padding: 0.7rem 1.6rem;
  border-radius: 1.2rem;
  border: none;
  cursor: pointer;
}

/* === MENSAJE DE CONFIRMACIÓN GUACHI === */
.mensaje-confirmacion {
  display: none;
  margin-top: 1.2rem;
  background: #fffbe9;
  border-radius: 1rem;
  box-shadow: 0 2px 14px 0 rgba(0,0,0,0.04);
  color: #ff6600;
  font-weight: 600;
  padding: 1.3rem 1rem 1.3rem 1rem;
  text-align: center;
  animation: pop-guachi 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
[data-theme="dark"] .mensaje-confirmacion {
  background: #1c180c;
  color: #ffbe78;
}
.mensaje-guachi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.gif-guachi {
  margin-top: 0.5rem;
  max-width: 140px;
  width: 80%;
  border-radius: 0.8rem;
  box-shadow: 0 3px 20px 0 rgba(0,0,0,0.07);
}
@keyframes pop-guachi {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

/* ========================================================
   ESTILOS PARA “SOBRE MÍ” 
   –– Este archivo lo enlazamos en <head> de sobre-mi.html
   ======================================================== */

/* ------ RESET de secciones (si hace falta) ------ */
.sobre-me-section {
  max-width: 800px;
  margin: calc(200px + 2rem) auto 4rem; /* deja espacio para header */
  padding: 0 1rem;
  font-family: 'Oswald', sans-serif;
  line-height: 1.5;
  color: var(--fg);
}

/* ======== PÁRRAFOS Y TEXTO COLOREADO ======== */
.bio-text p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

/* Clases de colores (puedes ajustar los hex a tu gusto) */
.text-orange {
  color: #ff6600;
}
.text-green {
  color: #4caf50;
}
.text-blue {
  color: #2196f3;
}
.text-purple {
  color: #9c27b0;
}
.text-red {
  color: #e53935;
}
.text-teal {
  color: #009688;
}
.text-magenta {
  color: #e91e63;
}

/* ======== SECCIÓN “Me verás usando:” ======== */
.tools {
  text-align: center;
  margin-bottom: 2rem;
}
.tools p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  color: var(--fg);
}
.icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* ======== SECCIÓN “Conóceme más en @soymarem” ======== */
.social {
  text-align: center;
  margin-bottom: 2rem;
}
.social h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.social .handle {
  font-size: 1.2rem;
  font-weight: bold;
}

/* ======== “Fun-fact” con foto de bebé ======== */
.fun-fact {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}
.baby-photo {
  flex: 0 0 400px;
  border-radius: 50%;
  overflow: hidden;
}
.baby-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.fun-text p {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

/* ======== AJUSTES ADICIONALES ======== */
/* Destacar menú actual en naranja (clase “active” en <a>) */
.top-nav a.active {
  color: #ff6600; /* mismo naranja que hover */
  font-weight: normal; /* ya no está en negrita */
}

/* Para asegurarnos de que el body permita scroll */
body.trabajos-page {
  overflow-y: auto;
  width: auto;
  height: auto;
}
/* ==============================================
   SOCIAL SIDEBAR (CÍRCULOS A LA IZQUIERDA)
   ============================================== */
.social-sidebar {
  position: fixed;
  left: -20px; /* la mitad fuera de pantalla */
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Cada enlace es un círculo pequeño que entra al hacer hover */
.social-sidebar a {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  transition: left 0.2s;
  left: 0; /* inicialmente semi fuera */
}

/* Al hacer hover, se desplaza 20px hacia la derecha para mostrarse completo */
.social-sidebar a:hover {
  left: 20px;
}

/* Colores según cada red */
.social-sidebar a.instagram {
  background-color: #d2a3b0; /* rosita topo */
}
.social-sidebar a.behance {
  background-color: #7491a7; /* azul topo */
}
.social-sidebar a.tiktok {
  background-color: #6a4f9c; /* moraillo azulado */
}

/* Tooltip dentro de cada enlace */
.social-sidebar a .tooltip {
  position: absolute;
  left: 50px;
  background-color: #333;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

/* Al hacer hover sobre el enlace, el tooltip aparece */
.social-sidebar a:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}
/* Descripción proyecto (como Frisona) */
.project-description{
  font-family:'Playfair Display', serif;
  font-size:1.1rem;
  line-height:1.8;
  text-align:center;
  max-width:750px;
  margin:0 auto;
  opacity:0.9;
}
.project-description p{ margin-bottom:1.2rem; }
