:root {
    --verde: #bbc940;       /* Verde lima principal */
    --verde-claro: #eaffbd; /* Verde muy claro */
    --verde-oscuro: #8da02f; /* Verde más fuerte */
    --gris: #f9f9f9;
    --gris-texto: #555;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f6fbe9; /* Fondo verde muy claro */
    padding: 20px;
}

/*
.ficha {
    background-color: #fff;
    max-width: 800px;
    margin: auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
*/

/* Fotos dentro de ficha - opción libre (se adaptan sin recortar) */
.ficha img {
  max-width: 100%;   /* nunca más ancha que la ficha */
  height: auto;      /* mantiene la proporción */
  border-radius: 8px; /* esquinas suaves */
  display: block;    /* elimina espacio raro debajo */
  margin: 0 auto;    /* centra la imagen */
}

/* Fotos dentro de ficha - opción encuadre fijo (se recortan tipo cover) */
.ficha .foto {
  aspect-ratio: 16 / 9;   /* cambia 16/9 por 4/3 o 1/1 según quieras */
  overflow: hidden;       /* oculta lo que se sale */
  border-radius: 8px;
}

.ficha .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* mantiene proporción pero recorta */
  display: block;
}
/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    background-color: var(--verde); 
    padding: 15px 25px;
    border-radius: 10px 10px 0 0;
}

.header-title {
    color: #ffffff;
    font-size: 1.3em;
    margin: 0;
    text-align: center;
}

.header img.logo {
    max-width: 100px;
    height: auto;
    background-color: transparent;
}
.header img.logo {
    max-width: 100px;
    height: auto;
    background-color: transparent;
    border-radius: 0;  /* <- evita cualquier redondeo */
}

/* Titulos de secciones */
.section-title {
    font-size: 18px;
    color: var(--verde-oscuro);
    border-bottom: 2px solid var(--verde-oscuro);
    margin: 20px 0 10px;
    padding-bottom: 5px;
}

/* Bloques destacados */
.destacado {
    background-color: var(--verde-claro);
    padding: 15px;
    border-left: 5px solid var(--verde);
    margin-top: 20px;
    border-radius: 6px;
}

.destacado2 {
    background-color: #d9ed9f;
    padding: 10px;
    border-left: 5px solid var(--verde);
    margin-top: 20px;
    border-radius: 6px;
}

.destacado3 {
    background-color: #F8F9FA;
    padding: 15px;
    border-left: 5px solid var(--verde-claro);
    margin-top: 20px;
    border-radius: 6px;
}

/* Contactos */
.contacto {
    background: var(--gris);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.contacto strong {
    display: block;
    font-size: 15px;
    color: #222;
}

.contacto span {
    font-size: 14px;
    color: var(--gris-texto);
}

.contacto .linea-info a {
    color: var(--verde);
    text-decoration: none;
}

/* Botones circulares */
.phone-link {
    background-color: var(--verde);
    color: white;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    font-size: 1.5em;
}
.phone-link:hover {
    background-color: var(--verde-oscuro);
}
.phone-link-red {
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    font-size: 1.5em;
}

.phone-link-red:hover {
    background-color:#e74c3c;
}

.whatsapp-link {
    background-color: #25D366;
    color: white;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    font-size: 1.5em;
}

.whatsapp-link:hover {
    background-color: #128C7E;
}

.email-link {
    background-color: var(--verde-oscuro);
    color: white;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    font-size: 1.5em;
}

.email-link:hover {
    background-color: var(--verde);
}


.btn-911 {
  display: inline-block;
  background-color: #e74c3c; /* rojo de emergencia */
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-size: 25px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-911:hover {
  background-color: #c0392b;
  transform: scale(1.05);
}
/* Card emergencia */
.emergency-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    background-color: var(--verde);
    color: #ffffff;
    padding: 20px;
    text-align: center;
}

.card-header h1 {
    margin: 0;
    font-size: 1.8em;
}

/* Powered by */
.powered-by {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 13px;
    color: #999;
    margin-top: 25px;
    letter-spacing: 0.5px;
}

.powered-by a {
    color: var(--verde);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.powered-by a:hover {
    color: var(--verde-oscuro);
    text-decoration: underline;
}
