/*
  Portfolio Ana Maria Pirvanescu
  Solo HTML + CSS (sin JS, sin Bootstrap)
*/

/* ========== RESET BÁSICO ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== TIPOGRAFÍA Y FONDO GENERAL ========== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #f7f5f2;
}
/* ==mis tipografías== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}
/* --mi logo-- */

.logo img {
  height: 70px; /* tamaño del logo */
  display: block;
}

/* --mis herramientas-- */
.herramientas {
  padding: 6rem 2rem;
  background: #f7f5f2;
}

.herramientas h2 {
  color: #333;
}
.logo {
  color: white;
}
.site-header .menu-toggle {
  color: white;
}
.herramientas-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.herramienta {
  flex: 1 1 150px;
  max-width: 180px;
  background: #fff;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.herramienta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(178, 59, 91, 0.15);
}

.herramienta img {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.herramienta h3 {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0;
}

/* ========== FORMACIÓN ========== */
.formacion {
  padding: 8rem 2rem;
  background: #fff;
  overflow: hidden;
}
/* =Apartado de animació hecho con IA= */
.formacion-titulo {
  font-family: "Montserrat", sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: #374151;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 5rem;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.formacion-titulo.visible {
  opacity: 1;
  transform: scale(1);
}

.formacion-contenido {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
}

.formacion-year {
  flex-shrink: 0;
  position: relative;
}

/*css nombre y apellido */

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 1px;
  color: #ffffff;
  text-decoration: none;
}

.row > .column {
  padding: 0 8px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Create four equal columns that floats next to eachother */
.column {
  float: left;
  width: 25%;
}

/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: black;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 1200px;
}

/* The Close Button */
.close {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Hide the slides by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Caption text */
.caption-container {
  text-align: center;
  background-color: black;
  padding: 2px 16px;
  color: white;
}

img.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Cubre todo el espacio de la caja sin recortar la imagen*/

.modal {
  width: 100;
}
/* mueve la ventana modal 70 píxeles hacia abajo*/
.modal {
  top: 70px;
}

/* ========== CAROUSEL PROYECTOS ========== */
#carouselProyectos {
  max-width: 600px;
  margin: 0 auto;
}

#carouselProyectos .carousel-item img {
  max-height: 400px;
  object-fit: cover;
}

/* ========== FIX MODAL BOOTSTRAP 4 ========== */
#modalImagen.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  padding-top: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

#modalImagen .modal-content {
  position: relative;
  background-color: #fff;
  margin: auto;
  padding: 0;
  width: auto;
  max-width: 100%;
}

#modalImagen .close {
  color: #000;
  position: static;
  font-size: 1.5rem;
  opacity: 0.5;
}

#modalImagen .close:hover {
  color: #000;
  opacity: 0.75;
}

/* Texto del carousel debajo de la imagen */
#carouselProyectos .carousel-caption {
  position: relative;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 15px;
  text-align: center;
}

#carouselProyectos .carousel-caption h5 {
  color: #333;
  margin-bottom: 5px;
}

#carouselProyectos .carousel-caption p {
  color: #666;
  margin-bottom: 0;
}

/* Botón Ver mi vídeo */
.btn-video {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #b23b5b;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s;
}

.btn-video:hover {
  background: #8a2d47;
  color: #fff;
}
/* =============================
   BOTÓN HAMBURGUESA (MÓVIL)
   ============================= */
.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  position: relative;
  display: block; /* Por defecto visible solo en móvil */
}

/* BOTÓN DE CIERRE (✕) */
.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* MENÚ OVERLAY OCULTO */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: 0.4s ease;
  border: 0;
}

/* MENÚ VISIBLE */
.main-nav.open {
  transform: translateY(0);
}

/* Cuando se abre el menú → ocultamos la hamburguesa */
.main-nav.open ~ .menu-toggle,
.main-nav.open + .menu-toggle {
  display: none;
}

/* =============================
   ESTILOS DE ENLACES
   ============================= */
.main-nav ul {
  list-style: none;
  text-align: center;
}
.main-nav a {
  color: white;
  font-size: 1.8rem;
  padding: 1rem;
  text-decoration: none;
}

/* =============================
   VERSIÓN ESCRITORIO
   ============================= */
@media (min-width: 768px) {
  /* OCULTAR BOTONES en escritorio */
  .menu-toggle,      /* botón ☰ */
  .menu-close {
    /* botón ✕ */
    display: none !important;
  }

  /* MOSTRAR MENÚ NORMAL EN LÍNEA */
  .main-nav {
    position: static;
    transform: none;
    background: none;
    height: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .main-nav ul {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
  }
}
@media (max-width: 768px) {
  .site-header {
    flex-direction: row !important;
  }
}
