* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Encabezado */
header {
    position: relative;
    z-index: 999;
}

nav {
    background-color: transparent !important;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    padding: 10px 0;
}

.navbar {
    background: transparent !important;
    box-shadow: none;
    font-family: 'Poppins';
    position: relative;
    z-index: 1030;
}

.navbar-nav .nav-link {
    color: #000 !important;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #000 !important;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover {
    color: #f0c674 !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    background: none;
}


.navbar-toggler-icon {
    background-color: #000;
    width: 30px;
    height: 3px;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    background-color: #000;
    position: absolute;
    width: 30px;
    height: 3px;
    left: 0;
    transition: all 0.3s;
}

.navbar-toggler-icon::before {
    top: -8px;
}
.navbar-toggler-icon::after {
    bottom: -8px;
}

.navbar-collapse.show .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-collapse.show .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}


.navbar-collapse.show .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 768px) {
    .navbar-nav {
        background-color: #222;
    }
}

#menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #222;
    color: white;
    overflow: hidden;
    transition: background-color 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    z-index: 1020;
}

#menu.active {
    left: 0;
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#menu ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #444;
}

#menu ul li a {
    text-decoration: none;
    color: white;
    display: block;
}

#menu ul li a:hover {
    background-color: #444;
    transition: background-color 0.3s ease;
}

#btnMenu {
    background: none;
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    padding: 10px;
    z-index: 1040;
    position: absolute;
    top: 20px;
    left: 20px;
}
#btnMenu:hover {
    color: #5C6BC0;
}
#btnMenu.active {
    top: 2px;
    left: 200px;
    background-color: #888;
    color: #fff;
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #A5A5A5;
}
.search-form {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 5px 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.search-field {
  border: 1px solid #ccc;
  padding: 5px;
  outline: none;
  width: 150px;
  font-size: 14px;
  background: transparent;
  color: #333;
  cursor: text;
}
.search-field:focus {
  border-color: #f0c674;
  box-shadow: 0px 0px 5px #f0c674;
}
.search-submit {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #333;
}

.search-submit svg {
  fill: #333;
  transition: fill 0.3s ease;
}

.search-submit:hover svg {
  fill: #f0c674;
}


/* Contenido principal */
#contenido_1 {
    text-align: center;
    margin: 40px 0;
}

#contenido_1 h1 {
    font-size: 2.5rem;
    color: #222;
}

#contenido_1 p {
    font-size: 1.2rem;
    color: #666;
}

/* Imagen principal */
#imagenPrincipal img {
    width: 100%;
    height: auto;
    display: block;
}

/* Secciones */
main section {
    margin: 40px 0;
    padding: 20px;
    background-color: #f3f3f3;
    border-radius: 8px;
}

main section h2 {
    color: #444;
    font-size: 1.8rem;
}

main section p {
    font-size: 1rem;
    color: #555;
}

/* Imagen secundaria */
#imagenSecundaria img {
    max-width: 100%;
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    font-size: 1rem;
}

@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
    }

    #contenido_1 h1 {
        font-size: 2rem;
    }
}

.hero-section {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.card {
    border: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
}

.logo {
    max-height: 60px;
    z-index: 1000;
}

.navbar-collapse {
    z-index: 1025;
}
