/* INICIO MODIFICACIÓN: Estilos página herramientas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
/* INICIO MODIFICACIÓN: Header con imagen de fondo */
.header-htas {
    background: linear-gradient(rgba(44, 123, 229, 0.85), rgba(26, 92, 176, 0.85)), url('../img/head.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 40px 20px;
}
/* FIN MODIFICACIÓN: Header con imagen de fondo */

.header-htas h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitulo {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Aviso legal principal */
.aviso-legal {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #856404;
}

/* Contenedor principal */
.herramientas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

/* Tarjetas de herramientas */
.herramienta-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.herramienta-card:hover {
    transform: translateY(-3px);
}

.herramienta-card h2 {
    color: #2c7be5;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.herramienta-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Formularios */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Botones */
.btn-calcular {
    background: #2c7be5;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.btn-calcular:hover {
    background: #1a5cb0;
}

/* Resultados */
.resultado {
    background: #e6ffed;
    border-left: 5px solid #2ecc71;
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
}

.resultado p {
    margin-bottom: 8px;
}

.consejo {
    font-size: 0.85rem;
    color: #555;
    margin-top: 10px;
}

/* Botón cita dentro de resultados */
.boton-cita {
    margin-top: 15px;
    text-align: center;
}

.boton-cita a {
    display: inline-block;
    background: #2c7be5;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.boton-cita a:hover {
    background: #1a5cb0;
}

/* Aviso dentro de cada herramienta */
.aviso-herramienta {
    font-size: 0.7rem;
    color: #999;
    margin-top: 15px;
    text-align: center;
}

/* Lista de nombres */
#lista-nombres {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    list-style: none;
    margin-top: 10px;
}

#lista-nombres li {
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

/* Footer */
.footer-htas {
    background: #2c7be5;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

.footer-htas a {
    color: white;
    text-decoration: underline;
}

.footer-htas p {
    margin: 5px 0;
}

.aviso-footer {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .herramientas-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .herramienta-card {
        padding: 20px;
    }
    
    .header-htas h1 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    #lista-nombres {
        grid-template-columns: 1fr;
    }
}
/* FIN MODIFICACIÓN: Estilos página herramientas */

/* INICIO MODIFICACIÓN: Foto decorativa */
.foto-decorativa {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.foto-herramientas {
    width: 100%;
    max-width: 1200px;
    max-height: 620px;  /* ← AÑADE ESTA LÍNEA */
    object-fit: cover;  /* ← AÑADE ESTA LÍNEA (recorta la imagen para que encaje) */
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}
/* FIN MODIFICACIÓN: Foto decorativa */
/* INICIO MODIFICACIÓN: Botones compartir */
.botones-compartir {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.btn-compartir {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.btn-copiar {
    background: #6c757d;
    color: white;
}

.btn-copiar:hover {
    background: #5a6268;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
}

/* Responsive */
@media (max-width: 600px) {
    .botones-compartir {
        flex-direction: column;
    }
}
/* FIN MODIFICACIÓN: Botones compartir */

