/* ===========================
   Estilos globales
   =========================== */
html {
  scroll-behavior: smooth;
}
.intro-img {
  width: 100%;        /* ocupa todo el ancho disponible del contenedor */
  max-width: 1000px;  /* igual que el resto de las imágenes */
  height: auto;
  display: block;
  margin: 0 auto;     /* centra la imagen */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  line-height: 1.8;
  color: #000;
  background-color: #fff;
   letter-spacing: 1px; 
}
.epigrafe {
    display: block;        /* fuerza a que esté en su propia línea */
    text-align: right;     /* alinea a la derecha */
    font-style: italic;    /* pone la cita en cursiva */
    margin-bottom: 25px;   /* espacio entre la cita y el párrafo */
    font-size: 0.95em;     /* opcional: tamaño un poco menor que el texto */
    color: #555;           /* opcional: color más suave */
}
.autor-cita {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    font-style: italic;
    color: #555; /* gris suave para que sea discreto */
    margin-top: 15px;
}
/* ===========================
   Encabezados
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}
h1, h2, h3, h4, h5, h6, p {
    letter-spacing: 1px;
}
/* ===========================
   Párrafos y enlaces
   =========================== */
p {
  font-family: 'Cormorant Garamond', serif;
  margin-bottom: 0.5em;
  line-height: 1.6;
  color: #111;
}

a {
  font-family: 'Cormorant Garamond', serif;
  color: inherit;
  text-decoration: underline;
}

/* ===========================
   Contenedor general
   =========================== */
.contenedor {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 0;
  overflow: hidden;
}
#paintings {
    padding-top: 30px;  /* reduce la distancia arriba */
}
/* ===========================
   Header
   =========================== */
header .textos-header {
    padding-bottom: 20px; /* reduce el espacio bajo la introducción */
}
header .textos-header {
  text-align: center;
  padding: 30px 20px 15px 20px; /* menos espacio debajo del párrafo */
}

header .textos-header h2 {
  font-size: 2rem;
  margin-bottom: 5px;
}

header .textos-header p {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===========================
   Secciones
   =========================== */
section {
  padding: 60px 20px;
}

/* ===========================
   Galerías
   =========================== */
.galeria-paintings .imagen-port,
.galeria-instalation .imagen-port,
.galeria-object .imagen-port,
.galeria-video .video-port {
  margin-bottom: 20px;
}

/* ===========================
   Títulos de sección
   =========================== */
.titulo {
  color: #000;
  font-size: 27px;
  text-align: center;
  margin-bottom: 60px;
}

/* ===========================
   Subtítulos
   =========================== */
.subtitulo {
  font-size: 16px;
  font-weight: 300;
  color: #333;
  max-width: 1000px;
  margin: 15px auto 0;
  line-height: 1.6;
  text-align: left;
  padding: 0 20px;
}

/* ===========================
   Footer
   =========================== */
footer {
  text-align: center;
  padding: 40px 20px;
}

/* ===========================
   Bio estilo CV
   =========================== */
.bio {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.bio h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.bio p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.bio strong {
  font-weight: 700;
}

/* ===========================
   Separación entre bloques de Bio
   =========================== */
.bio p + p {
  margin-top: 10px;
}

/* ===========================
   Ajustes galería Video
   =========================== */
.video-port {
  position: relative;
  padding-bottom: 56.25%; /* relación 16:9 */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.video-port iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===========================
   Ajustes generales
   =========================== */
.galeria-paintings img,
.galeria-instalation img,
.galeria-object img {
  width: 100%;
  height: auto;
}
/* Dropdown contenedor */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Botón principal (Paintings) */
.dropbtn {
  background: none;
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 16px;
  color: inherit;
}

/* Submenú oculto por defecto */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links dentro del submenú */
.dropdown-content a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #000;
}

/* Efecto hover */
.dropdown-content a:hover {
  background-color: #f0f0f0;
}

/* Mostrar submenú al pasar el mouse */
.dropdown:hover .dropdown-content {
  display: block;
}
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000;        
  color: #fff;             
  width: 50px;
  height: 50px;
  padding: 0;              
  border-radius: 50%;      
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.back-to-top:hover {
  opacity: 1;
  transform: scale(1.1);   /* efecto suave al pasar el mouse */
}
/* Espacio superior al hacer clic en el menú */
section[id], 
h2[id], 
h3[id] {
  scroll-margin-top: 80px; /* ajusta según la altura de tu menú */
}
/* Secciones y subsecciones con espacio superior al hacer scroll */
section[id],
h2[id],
h3[id] {
  display: block;            /* asegura que se comporte como bloque */
  scroll-margin-top: 80px;   /* ajusta al tamaño del menú */
}

