:root {
    --dorado: #f2c651;        /* Dorado principal */
    --crema: #fff9d0;         /* Fondo suave / tonos claros */
    --dorado-oscuro: #e6b800; /* Dorado más intenso */
    --gris: #f9f9f9;
    --gris-texto: #555;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff; /* Fondo blanco */
    padding: 20px;
}

/* Fotos dentro de ficha - opción libre (se adaptan sin recortar) */
.ficha img {
  max-width: 100%;  
  height: auto;     
  border-radius: 8px;
  display: block;    
  margin: 0 auto;    
}

/* Fotos dentro de ficha - opción encuadre fijo (se recortan tipo cover) */
.ficha .foto {
  aspect-ratio: 16 / 9;   
  overflow: hidden;       
  border-radius: 8px;
}

.ficha .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  display: block;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    background-color: var(--dorado); 
    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(--dorado-oscuro);
    border-bottom: 2px solid var(--dorado-oscuro);
    margin: 20px 0 10px;
    padding-bottom: 5px;
}

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

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

.destacado3 {
    background-color: #fffbea;
    padding: 15px;
    border-left: 5px solid var(--crema);
    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(--dorado);
    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(--dorado-oscuro);
}

.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(--dorado-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(--dorado);
}

/* 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(--dorado);
    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(--dorado);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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