/* Reset y fuente */
* {
  box-sizing: border-box;
  margin    : 0;
  padding   : 0;
}

body {
  background-color: #f5f5f5;
  font-family     : 'Poppins', sans-serif;
  margin          : 3rem 5%;
  color           : #333;
}

/* Encabezado */
header {
  border-bottom: 1px solid #d07d68;
  margin-bottom: 1rem;
}

header img {
  width  : 400px;
  display: block;
  margin : 0 auto 10px;

}

/* Barra de navegación */
nav {
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.8rem;
  background-color: #d07d68;
  border-radius: 8px;
  width: fit-content;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
  list-style      : none;
  background-color: #d07d68;
  border-radius   : 8px;
  display         : flex;
  justify-content : center;
  flex-wrap       : wrap;
  padding         : 1rem 0;
  margin          : 0;
}

@media (max-width:768px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1001;
  }

  nav {
    background-color: #d07d68;
    border-radius: 8px;
    position: relative;
    min-height: 53px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 109px;
    flex-direction: column;
    background-color: #d07d68;
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.15);
    z-index: 999;
    border-radius: 0 0 8px 8px;
    padding: 1.5rem 0;
    margin: 0;
    list-style: none;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 0.8rem 0;
    list-style: none;
  }

  .nav-menu li::before {
    display: none;
  }

  header img {
    width: 100%;
  }
}

nav li {
  margin: 0 1rem;
}

nav a {
  text-decoration: none;
  color          : white;
  font-weight    : bold;
  padding        : 0.5rem 1rem;
  transition     : background-color 0.3s ease;
  border-radius  : 5px;
}

nav a:hover {
  background-color: #b86651;
}

/* Secciones */

h1 {
  font-size: 25px;
}

.section-one article {
  position     : relative;
  overflow     : hidden;
  border-radius: 8px;
  margin-top   : 2rem;
  text-align   : center;
}

.section-one img {
  width        : 100%;
  height       : auto;
  display      : block;
  border-radius: 8px;
  box-shadow   : 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-one p {
  font-size      : 1.3rem;
  position       : absolute;
  top            : 35%;
  left           : 0;
  width          : 100%;
  height         : 100%;
  padding        : 1rem;
  color          : #ffffff;
  display        : flex;
  justify-content: center;
  align-items    : center;
  text-align     : center;
  border-radius  : 8px;
}

@media (max-width:768px) {
  .section-one p {
    font-size : 1.5rem;
    position  : relative;
    color     : #676767;
    text-align: left;
    padding   : 0.2rem;
    margin-top: 0.5rem;
    font-size : large;
  }

  .section-one article {
    background-color: rgb(239, 239, 239);
    padding         : 0.5rem;
    box-shadow      : 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  h1 {
    font-size: 20px;
  }
}

/* Artículos en secciones */
.section-two {
  display   : flex;
  flex-wrap : wrap;
  gap       : 1rem;
  margin-top: 0.5rem;
}

.section-two article {
  flex            : 1;
  min-width       : 250px;
  border          : 1px solid #bbb;
  border-radius   : 8px;
  padding         : 1rem;
  background-color: rgb(255, 255, 255);
  box-shadow      : 0 4px 8px rgba(0, 0, 0, 0.05);
  position        : relative;
  overflow        : hidden;
  margin-top      : 2rem;
  text-align      : center;
  min-height      : 250px;
}

.section-two img {
  width        : 100%;
  height       : 100%;
  object-fit   : cover;
  position     : absolute;
  top          : 0;
  left         : 0;
  border-radius: 8px;
  z-index      : 1;
  filter       : brightness(0.8);
}

.section-two h2 {
  font-size    : 1.8rem;
  margin-bottom: 1rem;
  color        : #ffffff;
  font-weight  : 600;
  text-shadow  : 2px 2px 4px rgba(0, 0, 0, 0.8);
  position     : relative;
  z-index      : 2;
}

.section-two p {
  color      : #ffffff;
  line-height: 1.5;
  font-size  : 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  position   : relative;
  z-index    : 2;
}

/* Contenedor para el texto */
.section-two article {
  display        : flex;
  flex-direction : column;
  justify-content: center;
  align-items    : center;
}

article.equipo-trabajo {
  min-height: 500px;
}

@media (max-width:650px) {

  article.equipo-trabajo {
    min-height: 0px;
  }

}

.tutoriales-title {
  margin-top: 30px;
  padding   : 10px;
  text-align: center;
}

.section-two video {
  width : 100%;
  height: 100%;
}

p.video-parrafo {
  margin-top   : 0.5rem;
  margin-bottom: 0.5rem;
  padding      : 0.5rem;
}

section.section-tree {
  margin          : auto;
  background-color: #dbdbdb;
  border-radius   : 8px;
  gap             : 0.1rem;
  box-shadow      : 0 4px 8px rgba(0, 0, 0, 0.1);

}

article.video-tutoriales {
  margin          : 0.5rem;
  padding         : 0;
  min-height      : 0;
  background-color: #000000;
}

/* Footer */
footer {
  display         : flex;
  flex-wrap       : wrap;
  justify-content : space-around;
  align-items     : center;
  background-color: #d07d68;
  color           : white;
  padding         : 2rem 1rem;
  border-radius   : 8px;
  gap             : 2rem;
  margin-top      : 3rem;
}

footer img {
  width: 220px;
}

footer p {
  font-size : 0.9rem;
  text-align: center;
}

/* Botón de administración */
.admin-access {
  margin-top: 1rem;
  text-align: center;
}

.admin-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.admin-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.admin-icon {
  font-size: 1rem;
  animation: rotate 3s linear infinite;
}

.admin-text {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive para botón admin */
@media (max-width: 768px) {
  .admin-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .admin-text {
    font-size: 0.8rem;
  }
}

/* Seccion contactos */

article.contactos-article {
  background-color: #f6f6f6;
  padding         : 40px 30px;
  border-radius   : 12px;
  box-shadow      : 0 4px 15px rgba(0, 0, 0, 0.1);
  line-height     : 1.6;
  max-width       : 1000px;
  margin          : 20px auto;
}

p.parrafo-contactos,
h3.contactos-h3 {
  color        : #2c3e50;
  margin-bottom: 20px;
  text-shadow  : none;
}

h3.contactos-h3 {
  font-size     : 1.8rem;
  font-weight   : 600;
  margin-bottom : 25px;
  border-bottom : 3px solid #3498db;
  padding-bottom: 10px;
  color         : #34495e;
}

p.parrafo-contactos {
  font-size    : 1.1rem;
  margin-bottom: 25px;
  color        : #555;
}

ul.lista-contactos {
  list-style: none;
  padding   : 0;
  margin    : 0;
}

ul.lista-contactos li {
  background-color: #ffffff;
  padding         : 15px 20px;
  margin-bottom   : 12px;
  border-radius   : 8px;
  border-left     : 4px solid #3498db;
  box-shadow      : 0 2px 8px rgba(0, 0, 0, 0.08);
  transition      : all 0.3s ease;
  color           : #2c3e50;
  font-size       : 1rem;
}

ul.lista-contactos li:hover {
  transform : translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

ul.lista-contactos li strong {
  color      : #2980b9;
  font-weight: 600;
}

.redes-sociales {
  display  : flex;
  gap      : 20px;
  flex-wrap: wrap;
  padding  : 10px;
}

.redes-sociales a>img {
  width        : 35px;
  height       : 35px;
  object-fit   : contain;
  cursor       : pointer;
  border-radius: 50%;
  position     : relative;
}