/*
Theme Name: Astra Child Cámara
Template: astra
Version: 1.0.0
*/

.camara-empresa {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 24px;
}

.camara-volver {
    display: inline-block;
    margin-bottom: 24px;
}

.camara-empresa h1 {
    margin-bottom: 28px;
    font-size: clamp(28px, 4vw, 44px);
}

.camara-portada {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.camara-empresa-descripcion {
    margin: 28px 0;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.camara-boton {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 8px;
    background: #16324f;
    color: #fff;
    text-decoration: none;
}

.camara-boton:hover,
.camara-boton:focus-visible {
    background: #244c73;
    color: #fff;
}

.camara-catalogo {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.camara-tarjeta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}

.camara-tarjeta-imagen {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}

.camara-tarjeta-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camara-sin-imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
}

.camara-tarjeta-contenido {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    overflow-wrap: anywhere;
}

.camara-tarjeta h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.camara-tarjeta h2 a {
    color: #16324f;
    text-decoration: none;
}

.camara-tarjeta p {
    margin: 0 0 24px;
    line-height: 1.6;
}

.camara-tarjeta .camara-boton {
    margin-top: auto;
    text-align: center;
}

@media (max-width: 1024px) {
    .camara-catalogo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .camara-catalogo {
        grid-template-columns: 1fr;
    }
}

.camara-ficha {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    overflow-wrap: anywhere;
}

.camara-ficha-cabecera {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 32px 0;
}

.camara-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    flex-shrink: 0;
}

.camara-ficha h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
}

.camara-rubros {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.camara-rubros span {
    padding: 6px 12px;
    border-radius: 20px;
    background: #eaf1f7;
    color: #16324f;
    font-size: 14px;
}

.camara-ficha-columnas {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.camara-panel {
    padding: 28px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.camara-panel h2 {
    margin: 0 0 18px;
    font-size: 23px;
    color: #16324f;
}

.camara-panel p {
    line-height: 1.8;
}

.camara-contacto {
    background: #f8fafc;
}

.camara-contacto-enlaces {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.camara-galeria {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.camara-galeria img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.camara-aviso {
    padding: 14px;
    background: #fff3cd;
    color: #664d03;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .camara-ficha-columnas {
        grid-template-columns: 1fr;
    }

    .camara-ficha-cabecera {
        flex-direction: column;
        align-items: flex-start;
    }

    .camara-galeria {
        grid-template-columns: 1fr;
    }

    .camara-panel {
        padding: 20px;
    }
}

.camara-filtros {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    padding: 24px;
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.camara-filtro-campo {
    flex: 1 1 220px;
    min-width: 0;
}

.camara-filtro-campo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #16324f;
}

.camara-filtros input[type="search"],
.camara-filtros select {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.camara-filtros .camara-boton {
    min-height: 48px;
    margin: 0;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.camara-limpiar {
    align-self: center;
    color: #16324f;
    text-decoration: underline;
}

.camara-resultados {
    margin-bottom: 24px;
    color: #64748b;
}

.camara-sin-resultados {
    padding: 32px;
    background: #f8fafc;
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 600px) {
    .camara-filtros {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .camara-filtro-campo {
        flex: auto;
        width: 100%;
    }

    .camara-limpiar {
        align-self: flex-start;
    }
}