/* NAVBAR */
.custom-navbar {
    background: linear-gradient(90deg, #00475f 0%, #29b6f6 100%);
}

.custom-navbar .navbar-brand,
.custom-navbar .nav-link {
    color: white;
}

.custom-navbar .nav-link:hover {
    color: #00475f;
}

/* Estilo para el enlace activo: subrayado */
.custom-navbar .nav-link.active {
    font-weight: bold;
    color: white;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    text-decoration-color: white;
    /* color del subrayado */
}

.logo-navbar {
    width: auto;
    height: 30px;
    display: block;
}

/* BOTÓN HAMBURGUESA */
.custom-toggler-icon {
    width: 28px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-toggler-icon span {
    display: block;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: background-color 0.3s, height 0.3s;
}

.custom-navbar .navbar-toggler:hover .custom-toggler-icon span,
.custom-navbar .navbar-toggler:focus .custom-toggler-icon span {
    background-color: #00475f;
    height: 2px;
}

.custom-navbar .navbar-toggler {
    border: none !important;
    /* Sin borde */
}

/* ------------------------------------ */

/* FOOTER */

a.email-link {
    color: #00475f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a.email-link:hover {
    color: #29b6f6;
}

/* ------------------------------------ */

/*PÁGINAS*/

body {
    background-color: aliceblue;
    font-family: Arial, sans-serif;
}

h1 {
    padding: 20px;
}

h2 {
    padding: 20px;
    text-align: center;
}

/* OPERARIOS */
.operarios-foto-nombre-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 0px 50px;
}

.operario-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    width: 200px;
    box-sizing: border-box;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.operario-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.operario-card p {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    transition: filter 0.3s ease;
}

.social-icons a:hover img,
.social-icons a:focus img {
    filter: brightness(0.7);
}

/* FORMLARIO */
form {
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 20px;
    background: #f0f8ff;
    border: 1px solid #004080;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 14px;
    border: 1px solid #004080;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

form input:invalid {
    border-color: #e74c3c;
}

form button {
    background-color: #006dbf;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #004080;
}

/* Contenedor en 3 columnas responsivas */
.ecosistemas-container {
    column-count: 3;
    column-gap: 2em;
    column-rule: 1px solid #ccc;
}

/* Párrafos con espacio arriba y abajo */
.ecosistemas-container p {
    margin: 1em 0;
    padding: 20px;
    text-align: justify;
}

/* Primera letra tipo medieval doblando tamaño, con sombra */
.ecosistemas-container p::first-letter {
    font-family: 'UnifrakturCook', cursive;
    font-size: 2em;
    float: left;
    line-height: 1;
    padding-right: 0.1em;
    color: #3a3a3a;
    text-shadow:
        1px 1px 0 #d0d0d0,
        2px 2px 1px #a0a0a0;
}


/* ANIMALES */

/* Animación de canguro saltando */
.kangaroo {
    width: 150px;
    position: fixed;
    top: 60px;
    left: -200px;
    animation: kangarooJump 4s ease forwards;
}

@keyframes kangarooJump {
    0% {
        left: -200px;
        top: 60px;
    }

    50% {
        left: 50vw;
        top: 10vh;
    }

    100% {
        left: 80vw;
        top: 60px;
    }
}

/* Contenedor carrusel */
.carousel {
    min-height: 350px;
    max-width: 600px;
    margin: 80px auto 20px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-item {
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.carousel-item img {
    max-height: 250px;
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Info y curiosidades */
.animal-info p {
    margin: 0.5em 0;
    text-align: justify;
}

.animal-info p em {
    font-style: italic;
    color: #006dbf;
    font-weight: bold;
}

.animal-info p u {
    text-decoration: underline;
    color: #004080;
}

.animal-info blockquote {
    border-left: 4px solid #29b6f6;
    margin: 1em 0;
    padding: 0.5em 1em;
    color: #006dbf;
    font-style: italic;
    background-color: #f5faff;
}

/* Controles simples carrusel */
.carousel-controls {
    text-align: center;
    margin: 10px 0;
}

.carousel-controls button {
    background: #004080;
    border: none;
    color: white;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.carousel-controls button:hover {
    background: #006dbf;
}