/* css/herramientas.css */

/* =========================================
   DISEÑO PREMIUM HERRAMIENTAS INTERACTIVAS
   ========================================= */

.interactive-tools {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbf9 100%);
    padding: 6rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* Tarjetas Principales */
.tool-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.calculator-card::before {
    background: linear-gradient(90deg, #4CAF50, #81C784);
}

.hydration-card::before {
    background: linear-gradient(90deg, #03A9F4, #4dd0e1);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Header de la Tarjeta */
.tool-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tool-header h3 {
    font-size: 1.6rem;
    color: #0a3d0a;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
}

.tool-icon {
    font-size: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.tool-header p {
    color: #0a3d0a;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Formularios V2 - Estilo Minimalista y Limpio */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.form-group-tool {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group-tool label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #0a3d0a;
    letter-spacing: 0.3px;
}

/* Inputs y Selects */
.form-group-tool input,
.form-group-tool select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #c8e6c9;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0a3d0a !important;
    background-color: #f8fdf8;
    transition: all 0.3s ease;
    cursor: text;
    appearance: none;
}

/* Opciones del select - verde oscuro */
.form-group-tool select option {
    color: #0a3d0a !important;
    background-color: #fff;
    font-weight: 600;
}

/* Placeholder de inputs */
.form-group-tool input::placeholder {
    color: #4a7c4a;
    opacity: 0.7;
}

.form-group-tool select {
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.form-group-tool input:focus,
.form-group-tool select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
}

.hydration-card .form-group-tool input:focus,
.hydration-card .form-group-tool select:focus {
    border-color: #03A9F4;
    box-shadow: 0 0 0 4px rgba(3, 169, 244, 0.15);
}

/* Radio Buttons (Estilo Pills Modernos) */
.radio-group {
    display: flex;
    gap: 1rem;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 14px;
    border: 2px solid #e9ecef;
}

.radio-label {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-label span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    border-radius: 10px;
    font-weight: 600;
    color: #0a3d0a;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.hydration-card .radio-label input[type="radio"]:checked+span {
    background-color: #fff;
    color: #03A9F4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Botones de acción */
.tool-form .btn {
    margin-top: 1rem;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.calculator-card .btn-primary {
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.calculator-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.hydration-card .btn-primary {
    background-color: #03A9F4;
    border: none;
    box-shadow: 0 6px 20px rgba(3, 169, 244, 0.3);
}

.hydration-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 169, 244, 0.4);
}

/* Cajas de Resultado Animadas */
.tool-result {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tool-result.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Resultado Calorías */
.calculator-card .tool-result {
    background: linear-gradient(145deg, #f1f8e9 0%, #e8f5e9 100%);
    border: 1px solid #c8e6c9;
}

.calculator-card .tool-result h4 {
    color: #2e7d32;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calculator-card .calories-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.calculator-card .calories-number span:last-child {
    font-size: 1.2rem;
    color: #555;
    font-weight: 600;
    letter-spacing: 0;
}

/* Resultado Hidratación */
.hydration-card .tool-result {
    background: linear-gradient(145deg, #e1f5fe 0%, #b3e5fc 100%);
    border: 1px solid #81d4fa;
}

.hydration-card .tool-result h4 {
    color: #0277bd;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hydration-card .water-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0288d1;
    line-height: 1;
    letter-spacing: -1px;
}

.hydration-card .water-number span:last-child {
    font-size: 1.2rem;
    color: #0277bd;
    font-weight: 600;
}

.hydration-card .water-glasses {
    margin-top: 10px;
    font-weight: 600;
    color: #01579b;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.5);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
}

/* Notas y Tips */
.result-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 15px;
    line-height: 1.5;
}

.hydration-tips {
    margin-top: 2rem;
    background: #f8fcfd;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px dashed #4dd0e1;
    text-align: left;
}

.hydration-tips h5 {
    color: #0097a7;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hydration-tips ul {
    list-style: none;
    padding-left: 0;
}

.hydration-tips ul li {
    position: relative;
    padding-left: 24px;
    color: #546e7a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.hydration-tips ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00bcd4;
    font-weight: bold;
}