﻿/* --- Estilos generales --- */
body {
  font-family: Century Gothic, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background-color: #fff8f0;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
  font-family: Century Gothic, sans-serif;
}

h1 {
  font-size: 2.5em;
}

/* --- Header --- */
header {
  background-color: #f3e0c1; /* recuadro beige */
  text-align: center;
  padding: 50px 10px 30px;
}

header p {
  font-size: 1.2em;
  margin-top: 5px;
}

/* --- Secciones --- */
section {
  padding: 40px 20px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

section h2 {
  margin-bottom: 20px;
  font-size: 1.8em;
}

section h3 {
  margin-top: 20px;
  margin-bottom: 5px;
  font-size: 1.4em;
}

section p {
  margin-top: 0;
  margin-bottom: 5px;
}

/* --- Foto de perfil --- */
.foto-perfil {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 20px auto;
}

/* --- Galerías --- */
.galeria {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.galeria img {
  height: auto;
  max-height: 300px;
  width: auto;
  display: block;
  transition: transform 0.3s;
  cursor: pointer;
}

.galeria img:hover {
  transform: scale(1.05);
}

/* --- Curriculum --- */
.cv-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f3e0c1;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.cv-button:hover {
  background-color: #e5cfa1;
}

/* --- Contacto --- */
.contacto-container {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.contacto-container a,
.contacto-container .contacto-fijo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s, transform 0.2s;
}

.contacto-container a:hover {
  color: #a67c52;
  transform: scale(1.05);
}

.icono-contacto {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

/* --- Botón modo oscuro --- */
#modo-oscuro-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 2000;
  padding: 8px 12px;
  background-color: #444444; /* puedes cambiar color */
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s, color 0.3s;
}

#modo-oscuro-btn:hover {
  background-color: #a67c52;
}

/* --- Selector de idioma --- */
.selector-idioma {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 2000;
  display: flex;
  gap: 5px;
}

.selector-idioma button {
  background-color: #444444; /* puedes cambiar */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
}

.selector-idioma button:hover {
  background-color: #a67c52;
  transform: scale(1.05);
}

/* --- Menú de navegación --- */
.menu-navegacion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 15px 10px;
  margin: 20px 0; /* separación del header */
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: transparent; /* fuera del recuadro beige */
}

.menu-navegacion button {
  background-color: #f3e0c1; /* color de los botones */
  color: #333333;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.2s;
}

.menu-navegacion button:hover {
  background-color: #a67c52;
  transform: scale(1.05);
}

/* --- Modo oscuro --- */
body.dark-mode {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

body.dark-mode header {
  background-color: #2b2b2b;
}

body.dark-mode section {
  border-bottom: 1px solid #444;
}

body.dark-mode a {
  color: #f0d9b5;
}

body.dark-mode .contacto-container a:hover {
  color: #ffd699;
}

body.dark-mode .cv-button {
  background-color: #f0d9b5;
  color: #333;
}

body.dark-mode .cv-button:hover {
  background-color: #ffd699;
}

body.dark-mode #modo-oscuro-btn {
  background-color: #f0d9b5;
  color: #333;
}

body.dark-mode #modo-oscuro-btn:hover {
  background-color: #ffd699;
}

body.dark-mode .menu-navegacion button {
  background-color: #f0d9b5;
  color: #333;
}

body.dark-mode .menu-navegacion button:hover {
  background-color: #ffd699;
}

/* ===== SLIDER ===== */
.slider {
  position: relative;
  max-width: 1000px;
  margin: 10px auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-ventana {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s ease;
  touch-action: pan-y;
  flex-wrap: nowrap;
  padding-left: 0; /* importante para que la primera imagen no se corte */
}

.slider-track img {
  flex-shrink: 0;
  height: 300px;
  width: auto; /* ancho proporcional */
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s;
}

/* ===== FLECHAS ===== */
.flecha {
  background-color: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 22px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 10;
  padding: 0;
}

.flecha:hover {
  background-color: rgba(0,0,0,0.6);
  transform: scale(1.2);
}

body.dark-mode .flecha {
  background-color: rgba(255,255,255,0.3);
  color: #333;
}

body.dark-mode .flecha:hover {
  background-color: rgba(255,255,255,0.6);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox.activo {
  display: flex;
}

/* --- Responsive (celular) --- */
@media (max-width: 600px) {

  h1 {
    font-size: 1.8em;
  }

  section {
    padding: 30px 15px;
  }

  .foto-perfil {
    width: 150px;
    height: 150px;
  }

  .menu-navegacion {
    position: static;
  }

  .slider {
    max-width: 100%;
  }

  .slider-track img {
    height: 200px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
  }

  .flecha {
    display: none; /* swipe solamente */
  }

  .selector-idioma {
    top: 10px;
    left: 10px;
  }

  #modo-oscuro-btn {
    top: 10px;
    right: 10px;
  }
}

/* Mail fijo en modo oscuro */
body.dark-mode .contacto-fijo {
  color: #e0e0e0; /* gris claro, legible sobre fondo oscuro */
}
