/*
Theme Name: Senda Botanica Tajamar
Theme URI: https://sendabotanica.tajamar.es
Author: Tajamar
Description: Tema moderno para la Senda Botanica de Tajamar.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: senda-tajamar
*/

:root {
    --verde: #27452e;
    --verde-claro: #69934d;
    --fondo: #f3f5f0;
    --texto: #263229;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    line-height: 1.65;
}

a { color: #28643e; }
img { max-width: 100%; height: auto; }

.senda-cabecera {
    background: linear-gradient(125deg, #203b28, #426344);
    color: white;
    padding: 32px 20px 18px;
}

.senda-cabecera-inner {
    max-width: 1140px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.senda-emblema {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 2px solid #a5c888;
    border-radius: 16px;
    color: #d0e9b1;
    font-size: 34px;
    flex-shrink: 0;
}

.senda-marca {
    color: white;
    font-family: Georgia, serif;
    font-size: clamp(23px, 3vw, 36px);
    font-weight: bold;
    text-decoration: none;
    line-height: 1.2;
}

.senda-subtitulo {
    margin: 5px 0 0;
    color: #d8e6d1;
    font-size: 14px;
}

.senda-navegacion {
    background: #6f9a47;
    padding: 0 20px;
}

.senda-navegacion ul {
    max-width: 1140px;
    margin: auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.senda-navegacion a {
    color: white;
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.senda-navegacion a:hover,
.senda-navegacion .current-menu-item a {
    background: rgba(0,0,0,.18);
}

.senda-principal {
    max-width: 1140px;
    margin: 36px auto;
    padding: 0 20px;
}

.senda-intro {
    text-align: center;
    margin: 0 auto 35px;
    max-width: 760px;
}

.senda-intro h1 {
    font-family: Georgia, serif;
    font-size: clamp(30px, 4vw, 45px);
    color: var(--verde);
    margin: 0 0 12px;
}

.senda-intro p { color: #58665a; }

.senda-cuadricula {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.senda-tarjeta {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(25,50,28,.08);
    border: 1px solid #e0e7dc;
    transition: transform .2s, box-shadow .2s;
}

.senda-tarjeta:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(25,50,28,.15);
}

.senda-tarjeta a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.senda-tarjeta img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.senda-imagen-vacia {
    aspect-ratio: 4 / 3;
    background: #d8e5d1;
    display: grid;
    place-items: center;
    font-size: 42px;
}

.senda-tarjeta-info { padding: 17px 18px 20px; }

.senda-tarjeta h2 {
    margin: 0;
    color: var(--verde);
    font-size: 19px;
    text-transform: capitalize;
}

.senda-tarjeta p {
    margin: 5px 0 0;
    color: #69796b;
    font-size: 13px;
}

.senda-panel {
    background: white;
    padding: clamp(22px, 4vw, 48px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    max-width: 900px;
    margin: 0 auto;
}

.senda-panel h1 {
    font-family: Georgia, serif;
    color: var(--verde);
    line-height: 1.2;
}

.senda-panel .senda-foto {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 9px;
    margin-bottom: 25px;
}

.senda-panel .senda-acordeon {
    margin-top: 25px;
}

.senda-enlace-volver {
    display: inline-block;
    margin-top: 30px;
    font-weight: 600;
}

.senda-pie {
    background: #203a29;
    color: #e1eddf;
    text-align: center;
    padding: 32px 20px;
    margin-top: 65px;
}

@media (max-width: 800px) {
    .senda-cuadricula {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 550px) {
    .senda-cabecera-inner { align-items: flex-start; }
    .senda-emblema { width: 46px; height: 46px; }
    .senda-cuadricula { grid-template-columns: 1fr; }
    .senda-navegacion a { padding: 11px; font-size: 13px; }
    .senda-principal { margin-top: 24px; }
}

/* Escudo original de Tajamar */
.senda-escudo {
    width: 48px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 550px) {
    .senda-escudo {
        width: 38px;
        max-height: 52px;
    }
}

/* Clasificación científica de las fichas */
.senda-taxonomia {
    margin-top: 35px;
}

.senda-taxonomia h2 {
    color: #27452e;
    font-family: Georgia, serif;
    font-size: 25px;
    margin-bottom: 18px;
}

.senda-tabla-scroll {
    overflow-x: auto;
}

.senda-taxonomia table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.senda-taxonomia th,
.senda-taxonomia td {
    padding: 12px 16px;
    border-bottom: 1px solid #dce6d8;
    text-align: left;
    vertical-align: top;
}

.senda-taxonomia th {
    width: 35%;
    font-weight: 600;
    color: #31583b;
    background: #eef4ea;
}

.senda-taxonomia tr:nth-child(even) td {
    background: #f8faf7;
}

/* Pie de página de Senda Botánica */
.senda-pie {
    margin-top: 60px;
    padding: 28px 20px;
    background: linear-gradient(135deg, #29452b, #456b37);
    border-top: 8px solid #85af49;
    color: #ffffff;
    text-align: center;
    font-size: 13px;
}

.senda-pie-contenido {
    max-width: 1140px;
    margin: 0 auto;
}
