@import url("https://use.typekit.net/brp6pzc.css");

.hidden {
    display: none !important;
}

/* === ESPECIES === */
.especies-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1160px;
    margin: 0 auto;
}
#vistaEspecies {
    background-image: url("/img/Nosotros/FondoProposito.png");
    background-size: cover;
    background-position: center;
}
.titulo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0 20px;
}

.tituloEspecies {
    font-family: 'Segoe UI Variable', sans-serif;
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 700;
    text-align: center;
    color: #295E4D;
}


/* CARD */
.especie-card {
    width: 210px;
    height: 407px;

    display: flex;
    flex-direction: column;
    align-items: center;

    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.4s ease;
}

.especie-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* CONTENEDOR IMAGEN */
.especie-img {
    width: 210px;
    height: 368px;
    overflow: hidden;
    /* 🔥 CLAVE */
}

/* IMAGEN REAL */
.especie-img-inner {
    width: 100%;
    height: 100%;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1);
    transition: transform 1.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* HOVER ZOOM */
.especie-card:hover .especie-img-inner {
    transform: scale(1.12);
}

/* TEXTO */
.especie-texto {
    width: 100%;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: 'Segoe UI Variable', sans-serif;
    font-size: clamp(14px, 0.9vw, 18px);
    font-weight: 600;

    margin: 0;
    padding: 0 10px;
    text-align: center;
    box-sizing: border-box;

    transition: color 0.3s ease;
}

.especie-card:hover .especie-texto {
    color: #295E4D;
}

/* ===============================
   FICHA DE ESPECIE
================================ */
#especieFicha {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    color: #585857;
}

/* Botón volver - solo texto arriba a la izquierda */
/* ===============================
   BOTON volver
================================ */
.volver-btn {
    width: 130px;
    height: auto;
    padding: 1%;
    background: none;
    border: none;
    font-size: 21px;
    color: #295E4D;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.volver-icon {
    font-size: 50px;
    /* SOLO la flecha */
    line-height: 1;
}

/* ===============================
   FICHA TOP (IMAGEN + INFO)
================================ */
.ficha-topEspecies {
    height: 720px;
    display: flex;
    gap: 60px;
    /* separación general izquierda / derecha */
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    padding-bottom: 5%;
}

/* IMAGEN PRINCIPAL */
.ficha-img {
    flex: 0 0 210px;
    /* ancho fijo */
    height: 720px;
    overflow: hidden;
    border-radius: 4px;
}

.ficha-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTENEDOR TITULOS */
.titulosEspecies {
    width: 900px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-bottom: #585857 1px solid;
}

/* NOMBRE */
.titulosEspecies h1 {
    font-size: 48px;
    font-weight: 700;
    color: #295E4D;
    margin: 0;
    font-family: 'Segoe UI Variable', sans-serif;
}

/* META GENERAL */
.ficha-meta {
    width: 586px;
    display: flex;
    gap: 40px;
}

/* CADA BLOQUE (ESPECIE / FAMILIA) */
.ficha-meta span {
    display: flex;
    flex-direction: column;
    /* clave: vertical */
    gap: 4px;
}

/* SUBTITULO */
.ficha-meta strong {
    font-size: 16px;
    font-family: 'Segoe UI Variable', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #295E4D;
}

/* VALOR */
.ficha-meta span span {
    font-size: 16px;
    font-family: 'Segoe UI Variable', sans-serif;
    font-weight: 500;
    color: #295E4D;
}

.infoEspecie {
    font-size: 16px;
    font-family: 'Segoe UI Variable', sans-serif;
    line-height: 1.6;
    color: #585857;
    margin-bottom: 30px;
}

/* DESCRIPCION */
.ficha-descripcion {
    font-size: 16px;
    font-family: 'Segoe UI Variable', sans-serif;
    line-height: 1.6;
    color: #585857;
    margin-bottom: 30px;
}

/* ===============================
   PROPIEDADES TÉCNICAS
================================ */

/* lista */
.ficha-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* fila */
.ficha-box ul li.propiedad-row {
    display: flex;
    justify-content: space-between;
    /* izquierda / derecha */
    align-items: center;

    font-size: 16px;
    /* tamaño solicitado */
    padding: 1px 4px;

    color: #585857;
}

/* CONTENEDOR DE PROPIEDADES Y USOS */
.ficha-box h3 {
    font-size: 24px;
    color: #2B2B2B;
    padding: 5px 0;
    margin: 0 auto;
}

.ficha-box p {
    font-size: 16px;
    line-height: 1.6;
    color: #585857;
}

.ficha-columns {
    display: grid;
    grid-template-columns: 440px 1fr;
    /* Propiedades fijo / Usos flexible */
    gap: 40px;
    align-items: start;
}

/* COLUMNA PROPIEDADES */
.ficha-columns .ficha-box:first-child {
    height: 500px;
    overflow-y: auto;
}

/* COLUMNA USOS (se mantiene normal) */
.ficha-columns .ficha-box:last-child {
  display: flex;
  flex-direction: column;
  height: 500px; /* misma altura que propiedades */
}


.ficha-columns .ficha-box:first-child {
    width: 440px;
    height: 500px;

    overflow-y: auto;
    /* scroll si hay muchas propiedades */
}

/* colores intercalados */
.ficha-box ul li.propiedad-row:nth-child(odd) {
    background-color: #f5f5f5;
    /* gris claro */
}

.ficha-box ul li.propiedad-row:nth-child(even) {
    background-color: #ffffff;
    /* blanco */
}

/* titulo propiedad (izquierda) */
.ficha-box ul li.propiedad-row span {
    flex: 1;
    text-align: left;
}

/* valor propiedad (derecha) */
.ficha-box ul li.propiedad-row strong {
    flex: 0 0 auto;
    text-align: right;

    font-weight: 600;
    color: #295E4D;
    /* color distinto */
}

/* Botones */
.ficha-actions {
  width: 440px;
  height: 48px;

  display: flex;
  gap: 12px;

  margin-top: auto; /* 👈 ESTO la baja al fondo */
  font-size: 16px;
}


.btn-primary {
    width: 210px;
    height: auto;
    background-color: #295E4D;
    /* verde */
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-family: 'Segoe UI Variable', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e7e34;
}

.btn-outline {
    width: 210px;
    height: auto;
    background: none;
    border: none;
    color: #295E4D;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 16px;
    font-family: 'Segoe UI Variable', sans-serif;
    
}

.btn-outline:hover {
    color: #1f473a;
}

/* ===============================
   SECCIONES ABAJO (Acabado y Productos)
================================ */
.ficha-section {
    margin-bottom: 30px;
}

.ficha-section h3 {
    font-size: 24px;
    color: #295E4D;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ficha-galeria,
.ficha-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ficha-galeria img,
.ficha-productos img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.ficha-galeria p,
.ficha-productos p {
    font-size: 16px;
    font-family: 'Segoe UI Variable', sans-serif;
    font-weight: 600;
    text-align: center;
    color: #585857;
}


/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .ficha-top {
        flex-direction: column;
        gap: 20px;
    }

    .ficha-img {
        width: 100%;
        height: 420px;
    }

    .ficha-columns {
        grid-template-columns: 1fr;
    }

    .ficha-galeria,
    .ficha-productos {
        grid-template-columns: repeat(2, 1fr);
    }

    .ficha-actions {
        flex-direction: column;
        gap: 10px;
    }
}
/* ===============================
   BOTON volver
================================ */
.volver-btn {
    width: 130px;
    height: auto;
    padding: 1%;
    background: none;
    border: none;
    font-size: 21px;
    color: #295E4D;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.volver-icon {
    font-size: 50px;
    /* SOLO la flecha */
    line-height: 1;
}